From: Daniel Stenberg Date: Tue, 10 Aug 2004 13:21:32 +0000 (+0000) Subject: Ok, setting CURLOPT_POST to 0 will now convert the request to a GET (this X-Git-Tag: curl-7_12_2~223 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d5bdf5f89c482d2da64fc0785306a7410b29b556;p=thirdparty%2Fcurl.git Ok, setting CURLOPT_POST to 0 will now convert the request to a GET (this remains undocumented as this is not the way we recommend) --- diff --git a/lib/url.c b/lib/url.c index 5b10eb3100..23100fc135 100644 --- a/lib/url.c +++ b/lib/url.c @@ -639,6 +639,8 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...) callback! */ if(va_arg(param, long)) data->set.httpreq = HTTPREQ_POST; + else + data->set.httpreq = HTTPREQ_GET; break; case CURLOPT_POSTFIELDS: