From d5bdf5f89c482d2da64fc0785306a7410b29b556 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 10 Aug 2004 13:21:32 +0000 Subject: [PATCH] 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) --- lib/url.c | 2 ++ 1 file changed, 2 insertions(+) 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: