cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-653859 ] GET-POST-GET sequence error

From: <noreply_at_sourceforge.net>
Date: Sat, 14 Dec 2002 13:35:23 -0800

Bugs item #653859, was opened at 2002-12-14 13:35
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=653859&group_id=976

Category: libcurl
Group: bad behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: GET-POST-GET sequence error

Initial Comment:
I dont use multi
interface!

curl_easy_setopt(curl_handle,CURLOPT_VERBOSE,1);
                curl_easy_setopt(curl_handle,CURLOPT_USERAGENT,"Mozilla/4.0
(compatible; MSIE 5.01; Windows NT
5.0)");
                curl_easy_setopt(curl_handle,CURLOPT_HTTP_VERSION,CURL_HTTP_VERSION_1_1);
                curl_easy_setopt(curl_handle,CURLOPT_FOLLOWLOCATION,1);
                curl_easy_setopt(curl_handle,CURLOPT_ENCODING,"deflate,
gzip");
                curl_easy_setopt(curl_handle,CURLOPT_COOKIEFILE,"");
                curl_easy_setopt(curl_handle,CURLOPT_WRITEFUNCTION,WriteMemoryCallback);
                curl_easy_setopt(curl_handle,CURLOPT_FILE,curl_wrapper);

This
is options list which i use for this handle, and when i begin
work:

curl_easy_setopt(curl-
>curl_handle,CURLOPT_REFERER,referer);
curl_easy_setopt(curl-
>curl_handle,CURLOPT_POSTFIELDS,postfields);
curl_easy_setopt(curl-
>curl_handle,CURLOPT_POST,1);
curl_easy_setopt(curl-
>curl_handle,CURLOPT_URL,url);

then i want use this
handle for GET command but libcurl uses POST not
GET

curl_easy_setopt(curl-
>curl_handle,CURLOPT_REFERER,referer);
curl_easy_setopt(curl-
>curl_handle,CURLOPT_POST,0);
curl_easy_setopt(curl-
>curl_handle,CURLOPT_POSTFIELDS,NULL);
curl_easy_setopt(curl-
>curl_handle,CURLOPT_URL,url);

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=653859&group_id=976

-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
Received on 2002-12-14