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:
parent
17de7e0f1c
commit
d5bdf5f89c
@ -639,6 +639,8 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
|
|||||||
callback! */
|
callback! */
|
||||||
if(va_arg(param, long))
|
if(va_arg(param, long))
|
||||||
data->set.httpreq = HTTPREQ_POST;
|
data->set.httpreq = HTTPREQ_POST;
|
||||||
|
else
|
||||||
|
data->set.httpreq = HTTPREQ_GET;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CURLOPT_POSTFIELDS:
|
case CURLOPT_POSTFIELDS:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user