Hi All,
I am trying to transfer/upload a file to SAS Content Server specifically to /SASContentServer/repository/default/sasdav/Products/SASRiskGovernanceFramework/RiskGovFrwkMid-Tier/rmc/Resources using proc http as below:
%let SASContentServer = /SASContentServer/repository/default/sasdav/Products/SASRiskGovernanceFramework/RiskGovFrwkMid-Tier/rmc/Resources; %let webdav_url = &rgf_protocol.://&rgf_host.:&rgf_port.&SASContentServer.;
%put &=webdav_url;
filename in_file '/sasdata/json/test.json'; filename out_file '/sasdata/json/SASContent_log.txt';
proc http
url="&webdav_url."
method="PUT"
in=in_file
out=out_file /* Log or response file */
ct="application/json"
http_tokenauth;
run;
However, I am getting 415 unsupported media type in the logs. Any idea on how to go about this? Or is there any other way on how I can upload files to SAS Content Server repository automatically? Appreciate any feedback on this. Thank you.
... View more