mirror of
https://github.com/curl/curl.git
synced 2026-04-25 10:12:11 +03: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:
parent
17de7e0f1c
commit
d5bdf5f89c
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue