1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-11 07:39:50 -04:00

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)
This commit is contained in:
Daniel Stenberg 2004-08-10 13:21:32 +00:00
parent 17de7e0f1c
commit d5bdf5f89c

View File

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