[SOLVED] UHTTP Raw data
Author: i.sharp@pcisystems.co.uk (Iain Sharp)
I am trying to integrate with a third party application, they have a web format output, returning a PDF. Entering the url in a browser prompts for user accreditation, and then begins a download and save of the PDF. If I use UHTTP.GET(URL, User, Password,......) the returned data looks like the pdf file but encoded differently. (i.e. the first few characters are correct, as they are plain text, but thereafter the special characters are different. ) I am returning it to a raw variable Saving this output (filedump/raw) gives a file which cannot be read by adobe. I have run a comparison with the saved file from I.E. and they are different. The returned headers from the url are "Cache-Control=private·;Transfer-Encoding=chunked·;Content-Type=application/octet-stream·;Server=Microsoft-IIS/8.5·;Content-Disposition=attachment;filename=201502091359.pdf·;X-AspNet-Version=4.0.30319·;X-Powered-By=ASP.NET·;Date=Tue, 10 Feb 2015 12:05:30 GMT" and I pass no specific headers to the program. Is there any way to get the raw output from UHTTP without any form of encoding, or to remove the encoding it provides? (a different character set in the original header? I don't think the character set has an effect on application/octet-stream.




