diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-01-29 07:23:11 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-01-29 07:23:11 +0000 |
commit | 4cc76d157673c46434a5d3f59b2e61b85ca9e756 (patch) | |
tree | 0da8ad24c27f63c17146c28af74aa6f0e6ff2595 /lib | |
parent | 6dc5c6ffc79edc649c332b8b794187ee2d9355a8 (diff) |
upload sets HTTP request to PUT for "HTTP upload"
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -339,6 +339,9 @@ CURLcode curl_setopt(CURL *curl, CURLoption option, ...) break; case CURLOPT_UPLOAD: data->bits.upload = va_arg(param, long)?TRUE:FALSE; + if(data->bits.upload) + /* If this is HTTP, PUT is what's needed to "upload" */ + data->httpreq = HTTPREQ_PUT; break; case CURLOPT_POST: data->bits.http_post = va_arg(param, long)?TRUE:FALSE; |