diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/examples/httpput.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/docs/examples/httpput.c b/docs/examples/httpput.c index 303f88208..163600a5b 100644 --- a/docs/examples/httpput.c +++ b/docs/examples/httpput.c @@ -89,12 +89,9 @@ int main(int argc, char **argv) /* we want to use our own read function */ curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback); - /* enable uploading */ + /* enable uploading (implies PUT over HTTP) */ curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); - /* HTTP PUT please */ - curl_easy_setopt(curl, CURLOPT_PUT, 1L); - /* specify target URL, and note that this URL should include a file name, not only a directory */ curl_easy_setopt(curl, CURLOPT_URL, url); |