Hi all, I am trying to make POST requests to a webservice that returns some XML content. To do this, I am using PROC HTTP. Until this point, everything works. I get a response. proc http in=POST
out=RESPONSE headerout=RESP_H ct="application/xml"
url="https://****"
method="POST"
/*http_tokenauth*/
WEBUSERNAME="&username" WEBPASSWORD="&password" AUTH_BASIC;
run; The problem is that the response from this webservice is always stacked on one row. The resulting row/file can be up to 800 Mb large... For instance, this is what the response header says: HTTP/1.1 200
Content-Type: application/xml; charset=UTF-8
Content-Length: 665459054 If I now look at the XML file produced by the ' out=RESPONSE ' , PROC HTTP seems to truncate the one and only row from the response to 32767 characters, which is I guess linked to the max value of the LRECL option. If I was doing for instance a GET request through a filename and a data step, I would use something like below, however this is not an option here, since I really need to make a POST request... filename URL "https://...."
DATA TOTO;
infile URL recfm=n lrecl=32767;
input txt: $32767. @@;
run; What can I do to have the full response written? I could not find any option in the documentation in that regard. Current version: 9.04.01M3P062415 Thanks in advance for your time!
... View more