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
1 changed files with 2 additions and 0 deletions

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: