diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-08-10 13:21:32 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-08-10 13:21:32 +0000 |
commit | d5bdf5f89c482d2da64fc0785306a7410b29b556 (patch) | |
tree | 0c6a548ed8fa860b9a1fd33303e548f056d843fb | |
parent | 17de7e0f1c34cae409647c8944fe23a3ea59b768 (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.c | 2 |
1 files changed, 2 insertions, 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: |