diff options
Diffstat (limited to 'docs/libcurl/opts/CURLOPT_HTTPGET.3')
| -rw-r--r-- | docs/libcurl/opts/CURLOPT_HTTPGET.3 | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/docs/libcurl/opts/CURLOPT_HTTPGET.3 b/docs/libcurl/opts/CURLOPT_HTTPGET.3 index db1c84c7..7fe086cc 100644 --- a/docs/libcurl/opts/CURLOPT_HTTPGET.3 +++ b/docs/libcurl/opts/CURLOPT_HTTPGET.3 @@ -5,7 +5,7 @@ .\" * | (__| |_| | _ <| |___ .\" * \___|\___/|_| \_\_____| .\" * -.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al. +.\" * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. .\" * .\" * This software is licensed as described in the file COPYING, which .\" * you should have received as part of this distribution. The terms @@ -20,7 +20,7 @@ .\" * .\" ************************************************************************** .\" -.TH CURLOPT_HTTPGET 3 "April 17, 2018" "libcurl 7.60.0" "curl_easy_setopt options" +.TH CURLOPT_HTTPGET 3 "May 21, 2018" "libcurl 7.61.0" "curl_easy_setopt options" .SH NAME CURLOPT_HTTPGET \- ask for an HTTP GET request @@ -35,6 +35,10 @@ same curl \fIhandle\fP. When setting \fICURLOPT_HTTPGET(3)\fP to 1, it will automatically set \fICURLOPT_NOBODY(3)\fP to 0 and \fICURLOPT_UPLOAD(3)\fP to 0. + +Setting this option to zero has no effect. Applications need to explicitly +select which HTTP request method to use, they cannot deselect a method. To +reset a handle to default method, consider \fIcurl_easy_reset(3)\fP. .SH DEFAULT 0 .SH PROTOCOLS @@ -45,10 +49,10 @@ curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); - /* use a GET to fetch this */ + /* use a GET to fetch this */ curl_easy_setopt(curl, CURLOPT_HTTPGET, 1L); - /* Perform the request */ + /* Perform the request */ curl_easy_perform(curl); } .fi @@ -57,4 +61,5 @@ Along with HTTP .SH RETURN VALUE Returns CURLE_OK if HTTP is supported, and CURLE_UNKNOWN_OPTION if not. .SH "SEE ALSO" -.BR CURLOPT_NOBODY "(3), " CURLOPT_UPLOAD "(3), " +.BR CURLOPT_NOBODY "(3), " CURLOPT_UPLOAD "(3), " CURLOPT_POST "(3), " +.BR curl_easy_reset "(3) " |
