cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: CURL lib issue

From: Nielsen Linus <Linus.Nielsen_at_elema.siemens.se>
Date: Wed, 4 Jul 2001 14:59:11 +0200

> 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:

Maybe this is a stupid question, but did you call curl_easy_setopt()
to unset the POST option? Like:

curl_easy_setopt(curl, CURLOPT_POST, 0);

/Linus
Received on 2001-07-04