代码之家  ›  专栏  ›  技术社区  ›  IceCreamToucan

proc-http curl选项的等价物--unsecure/-k

  •  3
  • IceCreamToucan  · 技术社区  · 6 年前

    pipe

    filename fn pipe "curl -k -u &user.:&pass. 'https://blahblah.com/rest/api/content/108428908/child/attachment' ";
    
    data new;
    infile fn;
    input;
    put _infile_;
    run;
    

    这是可行的,但我想使用proc http,所以我将响应返回到.json文件中而不是日志中,并且我可以使用SAS密码加密。以下是我的proc http代码:

    filename out "/blah/blahblah/output.json";
    
    proc http
      url    = 'https://blahblah.com/rest/api/content/108428908/child/attachment'
      method = "GET"
      webusername = "&user"
      webpassword = "&pass"
      out    = out
      ;
    run;
    

    -k --insecure )。

    -K

    2 回复  |  直到 6 年前
        1
  •  4
  •   drldcsta    6 年前