Archived Forum Post

Index of archived forum posts

Question:

REST Response Download Content

Nov 14 '14 at 11:51

Hello at all,

i need please help while downloading from a REST Webservice. I use the actually http-Chilkat library.

I call a Webservice. The request need informations about authenfication and file my request. when i do this in browser then the "save as" popup is shown and i can download the file.

How can i handle this with chilkat?

if i do this:

resp = http.SynchronousRequest("mywebservie.de/webservice1",80,false,req);

The resp has no information about the file.

Please help me. Thank you


Answer

Hi Leon. Please post the .LastErrorText so that we can better understand what is going on.


Answer

The first argument to SynchronousRequest is a domain (or an IP address). Pass only the domain, such as "mywebservice.de". The Path part of the URL is passed in the HttpRequest object..