aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-08-10 13:21:32 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-08-10 13:21:32 +0000
commitd5bdf5f89c482d2da64fc0785306a7410b29b556 (patch)
tree0c6a548ed8fa860b9a1fd33303e548f056d843fb
parent17de7e0f1c34cae409647c8944fe23a3ea59b768 (diff)
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)
-rw-r--r--lib/url.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 5b10eb310..23100fc13 100644
--- 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: