Commit d5bdf5f8 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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)
parent 17de7e0f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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: