curl-library
Re: Example Http Get File in C
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 11 Feb 2006 23:49:53 +0100 (CET)
Date: Sat, 11 Feb 2006 23:49:53 +0100 (CET)
On Sat, 11 Feb 2006, herzausgold_at_online.de wrote:
> Hi I write an example inspired from vb-source found on your page
> here: http://curl.planetmirror.com/libcurl/c/example.html
> It gets the file via http: digging out the filename.
> hope this is not to crude.
> Please put this code to the above example page.
Sorry, but it is too crude. It adds useless functions, it checks for data
where it shouldn't and I don't even understand the point of it!
> btw. any other way to get the file name?
I assume that you're talking about parsing the Content-Disposition header? If
so, then yes you can do that in a vastly superior way than how this example
does it.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2006-02-11