]> granicus.if.org Git - curl/commitdiff
Ok, setting CURLOPT_POST to 0 will now convert the request to a GET (this
authorDaniel Stenberg <daniel@haxx.se>
Tue, 10 Aug 2004 13:21:32 +0000 (13:21 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 10 Aug 2004 13:21:32 +0000 (13:21 +0000)
remains undocumented as this is not the way we recommend)

lib/url.c

index 5b10eb3100f8dc1a31d6d6c223a95fd066a0567c..23100fc135c6cc92bddf746a905ef332da98326c 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -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: