curl-users
[PATCH] Re: CURL lib issue
Date: Fri, 3 Aug 2001 13:53:49 +0200 (MET DST)
On Wed, 4 Jul 2001, Tomasz.Lacki wrote:
> I do not know how to tell the library for the second file upload (HTTP
> PUT) that I do not longer want to make HTTP post but just HTTP PUT, so
> the lib thinks that I want to make some kind of POST and goes down. The
> way out I have found is to deallocate curl and allocate again so for the
> above example it would look like:
Thanks for a very accurate description and to the point explanation what goes
wrong and why.
The code was a bit confused when dealing with multiple POST/PUT/GET/custom
requests and I realize now that it wasn't even complete (you can't reliably
tell libcurl to get back to a regular GET operation).
I've solved this now. I cleared up the HTTP request dealing code and I added
a new setopt option (CURLOPT_HTTPGET) that can set the request back to GET
(which is the default startup HTTP request).
I would be very interested in getting feedback on this patch.
This fix is committed to CVS.
-- Daniel Stenberg -- curl dude -- http://curl.haxx.se/
- TEXT/PLAIN attachment: postputget.patch