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