]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CURLOPT_*-docs: provide additional details
authorDaniel Stenberg <daniel@haxx.se>
Tue, 10 Sep 2024 09:37:27 +0000 (11:37 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 10 Sep 2024 11:48:42 +0000 (13:48 +0200)
Went through CURLOPTTYPE_STRINGPOINT and CURLOPTTYPE_SLISTPOINT options
and clarified:

- what happens when setting the option *again*

- setting to NULL disables/restores to default

- libcurl does not copy the slist for options using a such

Closes #14846

92 files changed:
docs/libcurl/opts/CURLOPT_ACCEPT_ENCODING.md
docs/libcurl/opts/CURLOPT_ALTSVC.md
docs/libcurl/opts/CURLOPT_AWS_SIGV4.md
docs/libcurl/opts/CURLOPT_CAINFO.md
docs/libcurl/opts/CURLOPT_CAPATH.md
docs/libcurl/opts/CURLOPT_CONNECT_TO.md
docs/libcurl/opts/CURLOPT_COOKIE.md
docs/libcurl/opts/CURLOPT_COOKIEFILE.md
docs/libcurl/opts/CURLOPT_COOKIEJAR.md
docs/libcurl/opts/CURLOPT_COPYPOSTFIELDS.md
docs/libcurl/opts/CURLOPT_CRLFILE.md
docs/libcurl/opts/CURLOPT_CUSTOMREQUEST.md
docs/libcurl/opts/CURLOPT_DEFAULT_PROTOCOL.md
docs/libcurl/opts/CURLOPT_DNS_INTERFACE.md
docs/libcurl/opts/CURLOPT_DNS_LOCAL_IP4.md
docs/libcurl/opts/CURLOPT_DNS_LOCAL_IP6.md
docs/libcurl/opts/CURLOPT_DNS_SERVERS.md
docs/libcurl/opts/CURLOPT_DOH_URL.md
docs/libcurl/opts/CURLOPT_ECH.md
docs/libcurl/opts/CURLOPT_ERRORBUFFER.md
docs/libcurl/opts/CURLOPT_FTPPORT.md
docs/libcurl/opts/CURLOPT_FTP_ACCOUNT.md
docs/libcurl/opts/CURLOPT_HAPROXY_CLIENT_IP.md
docs/libcurl/opts/CURLOPT_HSTS.md
docs/libcurl/opts/CURLOPT_HTTP200ALIASES.md
docs/libcurl/opts/CURLOPT_HTTPHEADER.md
docs/libcurl/opts/CURLOPT_INTERFACE.md
docs/libcurl/opts/CURLOPT_ISSUERCERT.md
docs/libcurl/opts/CURLOPT_KEYPASSWD.md
docs/libcurl/opts/CURLOPT_KRBLEVEL.md
docs/libcurl/opts/CURLOPT_LOGIN_OPTIONS.md
docs/libcurl/opts/CURLOPT_MAIL_AUTH.md
docs/libcurl/opts/CURLOPT_MAIL_FROM.md
docs/libcurl/opts/CURLOPT_MAIL_RCPT.md
docs/libcurl/opts/CURLOPT_NETRC_FILE.md
docs/libcurl/opts/CURLOPT_NOPROXY.md
docs/libcurl/opts/CURLOPT_PASSWORD.md
docs/libcurl/opts/CURLOPT_POSTFIELDS.md
docs/libcurl/opts/CURLOPT_POSTQUOTE.md
docs/libcurl/opts/CURLOPT_PREQUOTE.md
docs/libcurl/opts/CURLOPT_PRE_PROXY.md
docs/libcurl/opts/CURLOPT_PROTOCOLS_STR.md
docs/libcurl/opts/CURLOPT_PROXY.md
docs/libcurl/opts/CURLOPT_PROXYHEADER.md
docs/libcurl/opts/CURLOPT_PROXYPASSWORD.md
docs/libcurl/opts/CURLOPT_PROXYUSERPWD.md
docs/libcurl/opts/CURLOPT_PROXY_CAINFO.md
docs/libcurl/opts/CURLOPT_PROXY_CAPATH.md
docs/libcurl/opts/CURLOPT_PROXY_CRLFILE.md
docs/libcurl/opts/CURLOPT_PROXY_ISSUERCERT.md
docs/libcurl/opts/CURLOPT_PROXY_KEYPASSWD.md
docs/libcurl/opts/CURLOPT_PROXY_PINNEDPUBLICKEY.md
docs/libcurl/opts/CURLOPT_PROXY_SERVICE_NAME.md
docs/libcurl/opts/CURLOPT_PROXY_SSLCERT.md
docs/libcurl/opts/CURLOPT_PROXY_SSLCERTTYPE.md
docs/libcurl/opts/CURLOPT_PROXY_SSLKEY.md
docs/libcurl/opts/CURLOPT_PROXY_SSLKEYTYPE.md
docs/libcurl/opts/CURLOPT_PROXY_SSL_CIPHER_LIST.md
docs/libcurl/opts/CURLOPT_PROXY_TLS13_CIPHERS.md
docs/libcurl/opts/CURLOPT_PROXY_TLSAUTH_PASSWORD.md
docs/libcurl/opts/CURLOPT_PROXY_TLSAUTH_TYPE.md
docs/libcurl/opts/CURLOPT_PROXY_TLSAUTH_USERNAME.md
docs/libcurl/opts/CURLOPT_QUOTE.md
docs/libcurl/opts/CURLOPT_RANGE.md
docs/libcurl/opts/CURLOPT_REDIR_PROTOCOLS_STR.md
docs/libcurl/opts/CURLOPT_REFERER.md
docs/libcurl/opts/CURLOPT_REQUEST_TARGET.md
docs/libcurl/opts/CURLOPT_RESOLVE.md
docs/libcurl/opts/CURLOPT_RTSP_SESSION_ID.md
docs/libcurl/opts/CURLOPT_RTSP_STREAM_URI.md
docs/libcurl/opts/CURLOPT_SASL_AUTHZID.md
docs/libcurl/opts/CURLOPT_SERVICE_NAME.md
docs/libcurl/opts/CURLOPT_SSH_HOST_PUBLIC_KEY_MD5.md
docs/libcurl/opts/CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256.md
docs/libcurl/opts/CURLOPT_SSH_KNOWNHOSTS.md
docs/libcurl/opts/CURLOPT_SSLCERT.md
docs/libcurl/opts/CURLOPT_SSLCERTTYPE.md
docs/libcurl/opts/CURLOPT_SSLENGINE.md
docs/libcurl/opts/CURLOPT_SSLKEY.md
docs/libcurl/opts/CURLOPT_SSLKEYTYPE.md
docs/libcurl/opts/CURLOPT_SSL_CIPHER_LIST.md
docs/libcurl/opts/CURLOPT_SSL_EC_CURVES.md
docs/libcurl/opts/CURLOPT_TELNETOPTIONS.md
docs/libcurl/opts/CURLOPT_TLS13_CIPHERS.md
docs/libcurl/opts/CURLOPT_TLSAUTH_PASSWORD.md
docs/libcurl/opts/CURLOPT_TLSAUTH_TYPE.md
docs/libcurl/opts/CURLOPT_TLSAUTH_USERNAME.md
docs/libcurl/opts/CURLOPT_UNIX_SOCKET_PATH.md
docs/libcurl/opts/CURLOPT_URL.md
docs/libcurl/opts/CURLOPT_USERAGENT.md
docs/libcurl/opts/CURLOPT_USERPWD.md
docs/libcurl/opts/CURLOPT_XOAUTH2_BEARER.md

index bd80d842ff5f66c740dd62231c69bdc16edad316..d0ef75f794012f21466af19c114d448898910616 100644 (file)
@@ -42,19 +42,19 @@ built-in supported encodings.
 
 Alternatively, you can specify exactly the encoding or list of encodings you
 want in the response. The following encodings are supported: *identity*,
-meaning non-compressed, *deflate* which requests the server to compress
-its response using the zlib algorithm, *gzip* which requests the gzip
-algorithm, (since curl 7.57.0) *br* which is brotli and (since curl
-7.72.0) *zstd* which is zstd. Provide them in the string as a
-comma-separated list of accepted encodings, like: **"br, gzip, deflate"**.
-
-Set CURLOPT_ACCEPT_ENCODING(3) to NULL to explicitly disable it, which
-makes libcurl not send an Accept-Encoding: header and not decompress received
+meaning non-compressed, *deflate* which requests the server to compress its
+response using the zlib algorithm, *gzip* which requests the gzip algorithm,
+(since curl 7.57.0) *br* which is brotli and (since curl 7.72.0) *zstd* which
+is zstd. Provide them in the string as a comma-separated list of accepted
+encodings, like: **"br, gzip, deflate"**.
+
+Set CURLOPT_ACCEPT_ENCODING(3) to NULL to explicitly disable it, which makes
+libcurl not send an Accept-Encoding: header and not decompress received
 contents automatically.
 
 You can also opt to just include the Accept-Encoding: header in your request
-with CURLOPT_HTTPHEADER(3) but then there is no automatic decompressing
-when receiving data.
+with CURLOPT_HTTPHEADER(3) but then there is no automatic decompressing when
+receiving data.
 
 This is a request, not an order; the server may or may not do it. This option
 must be set (to any non-NULL value) or else any unsolicited encoding done by
@@ -72,6 +72,9 @@ sending the length of the non-compressed content is a common server mistake).
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones.
+
 # HISTORY
 
 This option was called CURLOPT_ENCODING before 7.21.6
index 43c52a47e605d137f28549bb735776a23201cd9a..ef5e834501776d11c2af69b81a27f0e9568c1ab1 100644 (file)
@@ -35,6 +35,12 @@ CURLOPT_ALTSVC_CTRL(3).
 
 Specify a blank filename ("") to make libcurl not load from a file at all.
 
+The application does not have to keep the string around after setting this
+option.
+
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL. The alt-svc cache is not read nor written to file.
index 2e61e897c9473b4d50bb243fcf4b16de599cffe0..0b17b1ed7dc05487b27c7d5ebb310a46c0e3c0a8 100644 (file)
@@ -68,6 +68,12 @@ generated string.
 Setting CURLOPT_HTTPAUTH(3) with the CURLAUTH_AWS_SIGV4 bit set is the same as
 setting this option with a **"aws:amz"** parameter.
 
+The application does not have to keep the string around after setting this
+option.
+
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index 2eeedd508cabdcb1f0f3dc50945cd99dd4b508d7..686d17e0578519ddea3060ab56fcbe8f67f98487 100644 (file)
@@ -54,6 +54,9 @@ store of root certificates (the default for Schannel).
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 The default value for this can be figured out with CURLINFO_CAINFO(3).
 
 # DEFAULT
index 3094bf8b5477faaf78373fe08be96db6755e0301..3dcba2d0a3e80d20913522d972f8c0a208c3dfe9 100644 (file)
@@ -45,6 +45,9 @@ to some limitation in OpenSSL.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 The default value for this can be figured out with CURLINFO_CAPATH(3).
 
 # DEFAULT
index 933e3b6a32dbf103704b74b89615c3ddbc25e98d..b4cc638ae96d42825a740b3832b808d2af4974de 100644 (file)
@@ -76,6 +76,9 @@ When this option is passed to curl_easy_setopt(3), libcurl does not copy the
 list so you **must** keep it around until you no longer use this *handle* for
 a transfer before you call curl_slist_free_all(3) on the list.
 
+Using this option multiple times makes the last set list override the previous
+ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index 953d6ecd2253070a887081cee6193d4d560ec612..d0bf88a1d857ce169fccd0ba7de8c1fc372fe22e 100644 (file)
@@ -54,15 +54,15 @@ Since this custom cookie is appended to the Cookie: header in addition to any
 cookies set by the cookie engine, there is a risk that the header ends up too
 long and thereby getting the entire request rejected by the server.
 
+The application does not have to keep the string around after setting this
+option.
+
 Using this option multiple times makes the last set string override the
-previous ones.
+previous ones. Set it to NULL to disable its use again.
 
 This option does not enable the cookie engine. Use CURLOPT_COOKIEFILE(3) or
 CURLOPT_COOKIEJAR(3) to enable parsing and sending cookies automatically.
 
-The application does not have to keep the string around after setting this
-option.
-
 # DEFAULT
 
 NULL, no cookies
index 09c75d014770ce8a020e6fb5096740fcfdc19c5e..7f607c7359c653b280bdaae70cabcc5df59d0c1c 100644 (file)
@@ -48,14 +48,12 @@ domain cannot match the target URL's. To address this, set a domain in
 Set-Cookie line (doing that includes subdomains) or preferably: use the
 Netscape format.
 
-If you use this option multiple times, you add more files to read cookies
-from.
-
 The application does not have to keep the string around after setting this
 option.
 
-Setting this option to NULL (since 7.77.0) explicitly disables the cookie
-engine and clears the list of files to read cookies from.
+If you use this option multiple times, you add more files to read cookies
+from. Setting this option to NULL disables the cookie engine and clears the
+list of files to read cookies from.
 
 # SECURITY
 
index 8fa3680aa219aef8ce73d5b3f29742a1df4771b2..3f76eb7e690c75629d1ce1cd431b01ea54265bff 100644 (file)
@@ -27,22 +27,21 @@ CURLcode curl_easy_setopt(CURL *handle, CURLOPT_COOKIEJAR, char *filename);
 
 # DESCRIPTION
 
-Pass a *filename* as a char *, null-terminated. This makes libcurl write
-all internally known cookies to the specified file when
-curl_easy_cleanup(3) is called. If no cookies are kept in memory at that
-time, no file is created. Specify "-" as filename to instead have the cookies
-written to stdout. Using this option also enables cookies for this session, so
-if you for example follow a redirect it makes matching cookies get sent
-accordingly.
+Pass a *filename* as a char *, null-terminated. This makes libcurl write all
+internally known cookies to the specified file when curl_easy_cleanup(3) is
+called. If no cookies are kept in memory at that time, no file is created.
+Specify "-" as filename to instead have the cookies written to stdout. Using
+this option also enables cookies for this session, so if you for example
+follow a redirect it makes matching cookies get sent accordingly.
 
 Note that libcurl does not read any cookies from the cookie jar specified with
 this option. To read cookies from a file, use CURLOPT_COOKIEFILE(3).
 
 If the cookie jar file cannot be created or written to (when the
-curl_easy_cleanup(3) is called), libcurl does not and cannot report an
-error for this. Using CURLOPT_VERBOSE(3) or
-CURLOPT_DEBUGFUNCTION(3) displays a warning, but that is the only
-visible feedback you get about this possibly lethal situation.
+curl_easy_cleanup(3) is called), libcurl does not and cannot report an error
+for this. Using CURLOPT_VERBOSE(3) or CURLOPT_DEBUGFUNCTION(3) displays a
+warning, but that is the only visible feedback you get about this possibly
+lethal situation.
 
 Cookies are imported in the Set-Cookie format without a domain name are not
 exported by this option.
@@ -50,6 +49,9 @@ exported by this option.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index 6650008a6ff29aaca50d859d15ed84068397b2c6..a014458c9a3f17c43ad5da59c2827a4f60fa95cb 100644 (file)
@@ -33,14 +33,19 @@ HTTP POST operation. It behaves as the CURLOPT_POSTFIELDS(3) option, but the
 original data is instead copied by the library, allowing the application to
 overwrite the original data after setting this option.
 
-Because data are copied, care must be taken when using this option in
-conjunction with CURLOPT_POSTFIELDSIZE(3) or
-CURLOPT_POSTFIELDSIZE_LARGE(3): If the size has not been set prior to
-CURLOPT_COPYPOSTFIELDS(3), the data is assumed to be a null-terminated
-string; else the stored size informs the library about the byte count to
-copy. In any case, the size must not be changed after
-CURLOPT_COPYPOSTFIELDS(3), unless another CURLOPT_POSTFIELDS(3) or
-CURLOPT_COPYPOSTFIELDS(3) option is issued.
+Because data is copied, care must be taken when using this option in
+conjunction with CURLOPT_POSTFIELDSIZE(3) or CURLOPT_POSTFIELDSIZE_LARGE(3).
+If the size has not been set prior to CURLOPT_COPYPOSTFIELDS(3), the data is
+assumed to be a null-terminated string; else the stored size informs the
+library about the byte count to copy. In any case, the size must not be
+changed after CURLOPT_COPYPOSTFIELDS(3), unless another CURLOPT_POSTFIELDS(3)
+or CURLOPT_COPYPOSTFIELDS(3) option is set.
+
+The application does not have to keep the string around after setting this
+option.
+
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
 
 # DEFAULT
 
index b1daced168ebf933887c632fadeb377f108cb391..f0bea28218664038ee37ef7321285e03c8117de7 100644 (file)
@@ -49,13 +49,16 @@ This option makes sense only when used in combination with the
 CURLOPT_SSL_VERIFYPEER(3) option.
 
 A specific error code (*CURLE_SSL_CRL_BADFILE*) is defined with the option. It
-is returned when the SSL exchange fails because the CRL file cannot be
-loaded. A failure in certificate verification due to a revocation information
-found in the CRL does not trigger this specific error.
+is returned when the SSL exchange fails because the CRL file cannot be loaded.
+A failure in certificate verification due to a revocation information found in
+the CRL does not trigger this specific error.
 
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index 39da7ca00f8a9e7c86e77cc47af2c200429c8b4c..886f27ce2ff4212f2565bd15110cf3df2c2a43af 100644 (file)
@@ -34,14 +34,18 @@ CURLcode curl_easy_setopt(CURL *handle, CURLOPT_CUSTOMREQUEST, char *method);
 
 Pass a pointer to a null-terminated string as parameter.
 
-When changing the request *method* by setting CURLOPT_CUSTOMREQUEST(3), you
-do not actually change how libcurl behaves or acts: you only change the actual
+When changing the request *method* by setting CURLOPT_CUSTOMREQUEST(3), you do
+not actually change how libcurl behaves or acts: you only change the actual
 string sent in the request.
 
 libcurl passes on the verbatim string in its request without any filter or
 other safe guards. That includes white space and control characters.
 
-Restore to the internal default by setting this to NULL.
+The application does not have to keep the string around after setting this
+option.
+
+Using this option multiple times makes the last set string override the
+previous ones. Restore to the internal default by setting this to NULL.
 
 This option can be used to specify the request:
 
index 3787ff9512e70e5b2d44ad776413bbc3d2a439d7..9f85c6af0527f76b8533470268c1351427aff451 100644 (file)
@@ -37,12 +37,12 @@ Use one of these protocol (scheme) names:
 dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3,
 pop3s, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp
 
-An unknown or unsupported protocol causes error
-*CURLE_UNSUPPORTED_PROTOCOL* when libcurl parses a URL without a
-scheme. Parsing happens when curl_easy_perform(3) or
-curl_multi_perform(3) is called. The protocol set supported by libcurl
-vary depending on how it was built. Use curl_version_info(3) if you need
-a list of protocol names supported by the build of libcurl that you are using.
+An unknown or unsupported protocol causes error *CURLE_UNSUPPORTED_PROTOCOL*
+when libcurl parses a URL without a scheme. Parsing happens when
+curl_easy_perform(3) or curl_multi_perform(3) is called. The protocol set
+supported by libcurl vary depending on how it was built. Use
+curl_version_info(3) if you need a list of protocol names supported by the
+build of libcurl that you are using.
 
 This option does not change the default proxy protocol (http).
 
@@ -52,6 +52,9 @@ CURLOPT_URL(3) for details.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL (make a guess based on the host)
index 0d7f435ed38128d37b0a5a92386e956100464f39..5e58e0fd0d22e17719f0bf07cd8ce0e273ea017a 100644 (file)
@@ -36,6 +36,9 @@ specific interface).
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index cf3aae80e492ed5eabd46d18beec44224b209510..046ddbcdb96dde4c1c184a5bea0eb26a6fafd84e 100644 (file)
@@ -35,6 +35,9 @@ specific IP address).
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index 4750367de1edd436f016f0d5b20dea5255ca4bd8..e820ab11ed44efee80a7fe626544611897df6b8a 100644 (file)
@@ -35,6 +35,9 @@ address).
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index f345e3265ca94971a306d7711ffa93d66019e675..48a33523079b8d3135e3cdee5ac5324be34ab0b9 100644 (file)
@@ -30,15 +30,18 @@ CURLcode curl_easy_setopt(CURL *handle, CURLOPT_DNS_SERVERS, char *servers);
 Pass a char pointer that is the list of DNS servers to be used instead of the
 system default. The format of the dns servers option is:
 
-host[:port][,host[:port]]...
+    host[:port][,host[:port]]...
 
 For example:
 
-192.168.1.100,192.168.1.101,3.4.5.6
+    192.168.1.100,192.168.1.101,3.4.5.6
 
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index bd4372fb0a6ec65f82b869f8acc94c27af15d315..cf7a04e1903cd9d375260a58b4268ce05c193163 100644 (file)
@@ -41,7 +41,11 @@ To find the DoH server itself, which might be specified using a name, libcurl
 uses the default name lookup function. You can bootstrap that by providing the
 address for the DoH server with CURLOPT_RESOLVE(3).
 
-Disable DoH use again by setting this option to NULL.
+The application does not have to keep the string around after setting this
+option.
+
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
 
 # INHERIT OPTIONS
 
index b2d8eb43a40b819f9697cc6a1549c2a25756c378..b8251fe180b4709987bca0757280a3386c14f6f2 100644 (file)
@@ -70,6 +70,14 @@ If the string starts with `pn:` then the remainder of the string should be a
 DNS/hostname that is used to over-ride the public_name field of the
 ECHConfigList that is used for ECH.
 
+##
+
+The application does not have to keep the string around after setting this
+option.
+
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL or "false" to disable its use again.
+
 # DEFAULT
 
 NULL, meaning ECH is disabled.
index 4b8366840f9c6acb5c6ef45f61b0f33402d8c8bd..edac39b950ba793337fffea803cb2a46548c6e47 100644 (file)
@@ -37,16 +37,19 @@ be at least **CURL_ERROR_SIZE** bytes big.
 
 You must keep the associated buffer available until libcurl no longer needs
 it. Failing to do so might cause odd behavior or even crashes. libcurl might
-need it until you call curl_easy_cleanup(3) or you set the same option
-again to use a different pointer.
+need it until you call curl_easy_cleanup(3) or you set the same option again
+to use a different pointer.
 
 Do not rely on the contents of the buffer unless an error code was returned.
 Since 7.60.0 libcurl initializes the contents of the error buffer to an empty
 string before performing the transfer. For earlier versions if an error code
 was returned but there was no error detail then the buffer was untouched.
 
-Consider CURLOPT_VERBOSE(3) and CURLOPT_DEBUGFUNCTION(3) to better
-debug and trace why errors happen.
+Consider CURLOPT_VERBOSE(3) and CURLOPT_DEBUGFUNCTION(3) to better debug and
+trace why errors happen.
+
+Using this option multiple times makes the last set pointer override the
+previous ones. Set it to NULL to disable its use again.
 
 # DEFAULT
 
index d2f3eae7d3fb8d5266a4a78da6928329fe8aed5c..7f82b179434171426abf53e177b786fda1a6c80b 100644 (file)
@@ -46,12 +46,10 @@ specifier can be in brackets.
 
 Examples with specified ports:
 
-~~~c
-  eth0:0
-  192.168.1.2:32000-33000
-  curl.se:32123
-  [::1]:1234-4567
-~~~
+    eth0:0
+    192.168.1.2:32000-33000
+    curl.se:32123
+    [::1]:1234-4567
 
 We strongly advise against specifying the address with a name, as it causes
 libcurl to do a blocking name resolve call to retrieve the IP address. That
@@ -61,12 +59,13 @@ CURLOPT_DOH_URL(3) is set.
 Using anything else than "-" for this option should typically only be done if
 you have special knowledge and confirmation that it works.
 
-You disable PORT again and go back to using the passive version by setting
-this option to NULL.
-
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. You disable PORT again and go back to using the passive version
+by setting this option to NULL.
+
 # DEFAULT
 
 NULL
index da6835cc74542529d02948a8a115fe3d98a11183..aae893d3085010594c0955a2cd1963cbeccddf20 100644 (file)
@@ -33,6 +33,9 @@ this data is sent off using the ACCT command.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index 64e0085fd09da0feca21821f766efea2b85063e2..fb0f0ec520336174b69a063cccceb7dff53191a8 100644 (file)
@@ -31,8 +31,14 @@ When this parameter is set to a valid IPv4 or IPv6 numerical address, the
 library sends this address as client address in the HAProxy PROXY protocol v1
 header at beginning of the connection.
 
-This option is an alternative to CURLOPT_HAPROXYPROTOCOL(3) as that one
-cannot use a specified address.
+This option is an alternative to CURLOPT_HAPROXYPROTOCOL(3) as that one cannot
+use a specified address.
+
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
+The application does not have to keep the string around after setting this
+option.
 
 # DEFAULT
 
index b838c9e956da4935c897549f39e4363a4ea56730..3d5f957a8a46e73cdafdbb4a2b6ba73105944e9d 100644 (file)
@@ -33,8 +33,9 @@ name with this option also enables HSTS for this handle (the equivalent of
 setting *CURLHSTS_ENABLE* with CURLOPT_HSTS_CTRL(3)).
 
 If the given file does not exist or contains no HSTS entries at startup, the
-HSTS cache simply starts empty. Setting the filename to NULL or "" only
-enables HSTS without reading from or writing to any file.
+HSTS cache simply starts empty. Setting the filename to NULL allows HSTS
+without reading from or writing to any file. NULL also makes libcurl clear the
+list of files to read HSTS data from, if any such were previously set.
 
 If this option is set multiple times, libcurl loads cache entries from each
 given file but only stores the last used name for later writing.
@@ -44,7 +45,7 @@ given file but only stores the last used name for later writing.
 The HSTS cache is saved to and loaded from a text file with one entry per
 physical line. Each line in the file has the following format:
 
-[host] [stamp]
+    [host] [stamp]
 
 [host] is the domain name for the entry and the name is dot-prefixed if it is
 an entry valid for all subdomains to the name as well or only for the exact
index 59cdfeef66998a931b6c40ee54082822efae6643..933ed135b42df1b10decad050a0adb3672222bbb 100644 (file)
@@ -41,6 +41,12 @@ curl_slist_free_all(3) to clean up an entire list.
 The alias itself is not parsed for any version strings. The protocol is
 assumed to match HTTP 1.0 when an alias match.
 
+Using this option multiple times makes the last set list override the previous
+ones. Set it to NULL to disable its use again.
+
+libcurl does not copy the list, it needs to be kept around until after the
+transfer has completed.
+
 # DEFAULT
 
 NULL
index 35a67a12a854982c0a67a82cae304964bfa4f8ab..d3c06457b6b3b76712f516ce5a5de37b274ab0cc 100644 (file)
@@ -39,19 +39,18 @@ requests!
 
 When used within an IMAP or SMTP request to upload a MIME mail, the given
 header list establishes the document-level MIME headers to prepend to the
-uploaded document described by CURLOPT_MIMEPOST(3). This does not affect
-raw mail uploads.
-
-The linked list should be a fully valid list of **struct curl_slist**
-structs properly filled in. Use curl_slist_append(3) to create the list
-and curl_slist_free_all(3) to clean up an entire list. If you add a
-header that is otherwise generated and used by libcurl internally, your added
-header is used instead. If you add a header with no content as in 'Accept:'
-(no data on the right side of the colon), the internally used header is
-disabled/removed. With this option you can add new headers, replace internal
-headers and remove internal headers. To add a header with no content (nothing
-to the right side of the colon), use the form 'name;' (note the ending
-semicolon).
+uploaded document described by CURLOPT_MIMEPOST(3). This does not affect raw
+mail uploads.
+
+The linked list should be a fully valid list of **struct curl_slist** structs
+properly filled in. Use curl_slist_append(3) to create the list and
+curl_slist_free_all(3) to clean up an entire list. If you add a header that is
+otherwise generated and used by libcurl internally, your added header is used
+instead. If you add a header with no content as in 'Accept:' (no data on the
+right side of the colon), the internally used header is disabled/removed. With
+this option you can add new headers, replace internal headers and remove
+internal headers. To add a header with no content (nothing to the right side
+of the colon), use the form 'name;' (note the ending semicolon).
 
 The headers included in the linked list **must not** be CRLF-terminated,
 because libcurl adds CRLF after each header item itself. Failure to comply
@@ -65,16 +64,16 @@ following the request-line are headers. Adding this method line in this list
 of headers only causes your request to send an invalid header. Use
 CURLOPT_CUSTOMREQUEST(3) to change the method.
 
-When this option is passed to curl_easy_setopt(3), libcurl does not copy
-the entire list so you **must** keep it around until you no longer use this
-*handle* for a transfer before you call curl_slist_free_all(3) on
-the list.
+When this option is passed to curl_easy_setopt(3), libcurl does not copy the
+entire list so you **must** keep it around until you no longer use this
+*handle* for a transfer before you call curl_slist_free_all(3) on the list.
 
-Pass a NULL to this option to reset back to no custom headers.
+Using this option multiple times makes the last set list override the previous
+ones. Set it to NULL to disable its use again.
 
 The most commonly replaced HTTP headers have "shortcuts" in the options
-CURLOPT_COOKIE(3), CURLOPT_USERAGENT(3) and
-CURLOPT_REFERER(3). We recommend using those.
+CURLOPT_COOKIE(3), CURLOPT_USERAGENT(3) and CURLOPT_REFERER(3). We recommend
+using those.
 
 There is an alternative option that sets or replaces headers only for requests
 that are sent with CONNECT to a proxy: CURLOPT_PROXYHEADER(3). Use
index f1ca875fc9035d69edc8df986b511abe53f37e89..ce5636ab689dd937dad292a2adc9d35a63afb1d4 100644 (file)
@@ -44,13 +44,16 @@ libcurl does not support using network interface names for this option on
 Windows.
 
 We strongly advise against specifying the interface with a hostname, as it
-causes libcurl to do a blocking name resolve call to retrieve the IP
-address. That name resolve operation does **not** use DNS-over-HTTPS even if
+causes libcurl to do a blocking name resolve call to retrieve the IP address.
+That name resolve operation does **not** use DNS-over-HTTPS even if
 CURLOPT_DOH_URL(3) is set.
 
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL, use whatever the TCP stack finds suitable
index fa726b0cf00f6521b4b7f0758b857ac737591127..e11f41a8694904a5a12df8a810e6b227c36ad37d 100644 (file)
@@ -46,6 +46,9 @@ which is returned if the setup of the SSL/TLS session has failed due to a
 mismatch with the issuer of peer certificate (CURLOPT_SSL_VERIFYPEER(3)
 has to be set too for the check to fail). (Added in 7.19.0)
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 The application does not have to keep the string around after setting this
 option.
 
index 79f31555adcc4ecde580f502ca9aabd597c7a375..08a08f7a05eb034075ff9fd4a291ca7e506d1c88 100644 (file)
@@ -39,6 +39,9 @@ load a certificate but you need one to load your private key.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index 0c35b163fce00ece3d37c9708538a2861b232b80..5a674d3c4e3115d3311d29108280146694034a84 100644 (file)
@@ -35,6 +35,9 @@ string to NULL to disable kerberos support for FTP.
 The application does not have to keep the string around after setting this
 option.
 
+The application does not have to keep the string around after setting this
+option.
+
 # DEFAULT
 
 NULL
index 44f392250bb273b39063c1421022c2a79a75d5af..969a2c4182094efdbbfd9d87a0b1c86ff0c08f2d 100644 (file)
@@ -48,6 +48,9 @@ disables the plain LOGIN (e.g. to prevent password snooping).
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index 44effd4ee9a9044460c4ec81970aab6d608d4190..fd5c5f409c37a0d913f44de4190ad189759aca1d 100644 (file)
@@ -45,6 +45,9 @@ string is used then a pair of brackets are sent by libcurl as required by RFC
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index b0b66355cdcdcdd3a75e9399f04ebdde3cef062a..16d045be20a760870c7024093f371f56db4ac048 100644 (file)
@@ -38,6 +38,9 @@ server which might cause the email to be rejected.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 blank
index 9910860f3201224f2a82cb1c4417f0d078580072..3a6d17d0d04cd3f6b5fb54fe9f1a49e9981cdbf7 100644 (file)
@@ -32,6 +32,9 @@ SMTP mail request. The linked list should be a fully valid list of
 **struct curl_slist** structs properly filled in. Use curl_slist_append(3) to
 create the list and curl_slist_free_all(3) to clean up an entire list.
 
+libcurl does not copy the list, it needs to be kept around until after the
+transfer has completed.
+
 When performing a mail transfer, each recipient should be specified within a
 pair of angled brackets (\<\>), however, should you not use an angled bracket
 as the first character libcurl assumes you provided a single email address and
@@ -45,6 +48,9 @@ When performing a mailing list expand (**EXPN** command), each recipient
 should be specified using the mailing list name, such as `Friends` or
 `London-Office`.
 
+Using this option multiple times makes the last set list override the previous
+ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index a27d470aee4bed915fde308d614d25c443883fc7..4486b9c2dfc571eabe490e92301cb9018623a7ee 100644 (file)
@@ -35,6 +35,9 @@ for a .netrc file in the current user's home directory.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index 1412a9a58f201198d294198b72036cae4cb97194..b272887337cd418ba53e0839058e560e9631bdd6 100644 (file)
@@ -41,7 +41,7 @@ proxy for all hostnames, even if there is an environment variable set for it.
 Enter IPv6 numerical addresses in the list of hostnames without enclosing
 brackets:
 
- "example.com,::1,localhost"
   "example.com,::1,localhost"
 
 Since 7.86.0, IP addresses specified to this option can be provided using CIDR
 notation: an appended slash and number specifies the number of "network bits"
@@ -51,6 +51,9 @@ would match all addresses starting with "192.168".
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # Environment variables
 
 If there is an environment variable called **no_proxy** (or **NO_PROXY**),
index 94d90d0dcf74715daaa484334d24683c55ba6698..68297111eeae5c0019582ec7c002783a430d7cbc 100644 (file)
@@ -37,6 +37,9 @@ CURLOPT_USERNAME(3) option.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 blank
index edd932c4e7632be00f478ec4bd27a57026544be2..8f6738f7cf27820b7335959aeb366f850f18b783 100644 (file)
@@ -41,10 +41,9 @@ preserved by the calling application until the associated transfer finishes.
 This behavior can be changed (so libcurl does copy the data) by instead using
 the CURLOPT_COPYPOSTFIELDS(3) option.
 
-This POST is a normal **application/x-www-form-urlencoded** kind (and
-libcurl sets that Content-Type by default when this option is used), which is
-commonly used by HTML forms. Change Content-Type with
-CURLOPT_HTTPHEADER(3).
+This POST is a normal **application/x-www-form-urlencoded** kind (and libcurl
+sets that Content-Type by default when this option is used), which is commonly
+used by HTML forms. Change Content-Type with CURLOPT_HTTPHEADER(3).
 
 You can use curl_easy_escape(3) to URL encode your data, if
 necessary. It returns a pointer to an encoded string that can be passed as
@@ -58,9 +57,9 @@ CURLOPT_POSTFIELDS(3) to an empty string, or set CURLOPT_POST(3) to 1 and
 CURLOPT_POSTFIELDSIZE(3) to 0.
 
 libcurl assumes this option points to a null-terminated string unless you also
-set CURLOPT_POSTFIELDSIZE(3) to specify the length of the provided data,
-which then is strictly required if you want to send off null bytes included in
-the data.
+set CURLOPT_POSTFIELDSIZE(3) to specify the length of the provided data, which
+then is strictly required if you want to send off null bytes included in the
+data.
 
 Using POST with HTTP 1.1 implies the use of a "Expect: 100-continue" header,
 and libcurl adds that header automatically if the POST is either known to be
@@ -70,6 +69,9 @@ header with CURLOPT_HTTPHEADER(3) as usual.
 To make **multipart/formdata** posts, check out the
 CURLOPT_MIMEPOST(3) option combined with curl_mime_init(3).
 
+Using this option multiple times makes the last set pointer override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index 58c4d87104d33b949d74e9b2af59f2f9c3d5dfb1..7efca604458d12429583814738653295040cee3f 100644 (file)
@@ -33,7 +33,11 @@ after your FTP transfer request. The commands are only issued if no error
 occur. The linked list should be a fully valid list of struct curl_slist
 structs properly filled in as described for CURLOPT_QUOTE(3).
 
-Disable this operation again by setting a NULL to this option.
+Using this option multiple times makes the last set list override the previous
+ones. Set it to NULL to disable its use again.
+
+libcurl does not copy the list, it needs to be kept around until after the
+transfer has completed.
 
 # DEFAULT
 
@@ -62,6 +66,7 @@ int main(void)
 
     curl_easy_cleanup(curl);
   }
+  curl_slist_free_all(cmdlist);
 }
 ~~~
 
index 5291edf06ea6414dc8dd5cfff5a5678914ab566a..12383ec4d04a43b88d8077470154e6d836d7bdca 100644 (file)
@@ -30,8 +30,13 @@ CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PREQUOTE,
 Pass a pointer to a linked list of FTP commands to pass to the server after
 the transfer type is set. The linked list should be a fully valid list of
 struct curl_slist structs properly filled in as described for
-CURLOPT_QUOTE(3). Disable this operation again by setting a NULL to this
-option.
+CURLOPT_QUOTE(3).
+
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
+libcurl does not copy the list, it needs to be kept around until after the
+transfer has completed.
 
 These commands are not performed when a directory listing is performed, only
 for file transfers.
@@ -65,6 +70,7 @@ int main(void)
 
     curl_easy_cleanup(curl);
   }
+  curl_slist_free_all(cmdlist);
 }
 ~~~
 
index f6e5dbff0cd87f7e569fa6e96d7ae92ba124433b..666f90cd466957550ef0a0832bd6f9fd95bf48d1 100644 (file)
@@ -54,6 +54,9 @@ single port number used widely for proxies. Specify it.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index 1015b993c39f250394edb073c25f10517e47219d..854520851099d81d2505259fbb60a4848607dba6 100644 (file)
@@ -49,9 +49,12 @@ You can set "ALL" as a short-cut to enable all protocols. Note that by setting
 all, you may enable protocols that were not supported the day you write this
 but are introduced in a future libcurl version.
 
-curl_version_info(3) can be used to get a list of all supported
-protocols in the current libcurl. CURLINFO_SCHEME(3) is the recommended
-way to figure out the protocol used in a previous transfer.
+curl_version_info(3) can be used to get a list of all supported protocols in
+the current libcurl. CURLINFO_SCHEME(3) is the recommended way to figure out
+the protocol used in a previous transfer.
+
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to restore to the internal default.
 
 # DEFAULT
 
index 3611a6264088c19b46049e66d3cd9eb08c056966..c414f4f512968618e49fc6654a1f55e6dd2dd7c1 100644 (file)
@@ -41,6 +41,12 @@ defaults to using port 1080 for proxies.
 The proxy string may be prefixed with [scheme]:// to specify which kind of
 proxy is used.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
+The application does not have to keep the string around after setting this
+option.
+
 ## http://
 
 HTTP Proxy. Default when no scheme or proxy type is specified.
index 5bcd0176735f0f2832771e319881a6da2d615a5a..e74210abc3f1fdc23540cb92e2799111fc212445 100644 (file)
@@ -39,7 +39,11 @@ NOT a header and cannot be replaced using this option. Only the lines
 following the request-line are headers. Adding this method line in this list
 of headers causes your request to send an invalid header.
 
-Pass a NULL to this to reset back to no custom headers.
+Using this option multiple times makes the last set list override the previous
+ones. Set it to NULL to disable its use again.
+
+libcurl does not copy the list, it needs to be kept around until after the
+transfer has completed.
 
 # DEFAULT
 
index 1b371b22c203d0c478ac0d184ebfafb7188c5172..5086a4b3869675e3b2c5f43b137bb42602bdbac6 100644 (file)
@@ -28,15 +28,18 @@ CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXYPASSWORD, char *pwd);
 
 # DESCRIPTION
 
-Pass a char pointer as parameter, which should be pointing to the null-terminated
-password to use for authentication with the proxy.
+Pass a char pointer as parameter, which should be pointing to the
+null-terminated password to use for authentication with the proxy.
 
-The CURLOPT_PROXYPASSWORD(3) option should be used in conjunction with
-the CURLOPT_PROXYUSERNAME(3) option.
+The CURLOPT_PROXYPASSWORD(3) option should be used in conjunction with the
+CURLOPT_PROXYUSERNAME(3) option.
 
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 blank
index 38b1288eb58135a6e54025ad5a6ec8d58b9d2c35..acfd86f7dfbfea34285482032f7fec1c2f456eda 100644 (file)
@@ -39,6 +39,9 @@ Use CURLOPT_PROXYAUTH(3) to specify the authentication method.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index ed0b5e6b3ba442fe7e165c064a0e618a313f47fc..6365d5f22297940857e6a59d252f817e584c5fc2 100644 (file)
@@ -56,6 +56,10 @@ method of verifying the peer's certificate chain.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again and switches back to
+internal default.
+
 The default value for this can be figured out with CURLINFO_CAINFO(3).
 
 # DEFAULT
index fe680df09725053fbf61d9c4a5139755ddf4145b..d0fce53cae06c5cd5a771fb421be35ddb26db8e0 100644 (file)
@@ -42,6 +42,10 @@ CURLOPT_PROXY_SSL_VERIFYPEER(3) is enabled (which it is by default).
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again and switch back to
+internal default.
+
 The default value for this can be figured out with CURLINFO_CAPATH(3).
 
 # DEFAULT
index f0cb86db1e59fbe350f245fbf0312a91e2bcdb62..9dfeeefebb3b08cf1b595d996ac52c100470a6b8 100644 (file)
@@ -55,6 +55,9 @@ the CRL does not trigger this specific error.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index 954848b8635dc70ddb86dd01505020be2cd93ef3..0b7e45deeec17cce9c9a36c53c861e7510bf8cac 100644 (file)
@@ -40,18 +40,20 @@ additional check is useful in multi-level PKI where one needs to enforce that
 the peer certificate is from a specific branch of the tree.
 
 This option makes sense only when used in combination with the
-CURLOPT_PROXY_SSL_VERIFYPEER(3) option. Otherwise, the result of the
-check is not considered as failure.
+CURLOPT_PROXY_SSL_VERIFYPEER(3) option. Otherwise, the result of the check is
+not considered as failure.
 
 A specific error code (CURLE_SSL_ISSUER_ERROR) is defined with the option,
 which is returned if the setup of the SSL/TLS session has failed due to a
-mismatch with the issuer of peer certificate
-(CURLOPT_PROXY_SSL_VERIFYPEER(3) has to be set too for the check to
-fail).
+mismatch with the issuer of peer certificate (CURLOPT_PROXY_SSL_VERIFYPEER(3)
+has to be set too for the check to fail).
 
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index 1d7e2b0500d1841df733b3cd5ffbcd7a2f17bf27..6b417cb4a60cb319ab3b04a30f327039d662de8e 100644 (file)
@@ -43,6 +43,9 @@ key.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index c2113a93026ff143775a888c2109242c8463a629..6bb75fc6a44f046f47356e82f33c71ed0b8827a6 100644 (file)
@@ -50,6 +50,9 @@ On mismatch, *CURLE_SSL_PINNEDPUBKEYNOTMATCH* is returned.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index b224557e13a1c3cf209a52f14221a95e12987636..7083e252a3a535646244ae192e992036054fa877 100644 (file)
@@ -35,6 +35,9 @@ service. The default service name is **"HTTP"** for HTTP based proxies and
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 See above
index 1e8555ae10ffdb7b9d753f66699ef505d5a3dc79..c26f00ca01da87e032bc06eddf86fcfff430d6ec 100644 (file)
@@ -52,6 +52,9 @@ private key with CURLOPT_PROXY_SSLKEY(3).
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index 570ef0e79e52d9b0f910e4914cf63666f60e586c..fad7a6d7003e53f597b9551138162ce1710b9662 100644 (file)
@@ -45,6 +45,9 @@ files.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 "PEM"
index cc0f0313081840d47e6a3473b2f9950d80bde44e..6352d0e863be18666fef3fabb7e35b712f33dcb3 100644 (file)
@@ -46,6 +46,9 @@ present in the key chain or PKCS#12 file containing the certificate.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index b59ee26238e28581533229dd101b2177b7144e38..672318d2b6b058795666632122dd7c3cd860209c 100644 (file)
@@ -39,6 +39,9 @@ the format of your private key. Supported formats are "PEM", "DER" and "ENG".
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # %PROTOCOLS%
 
 # EXAMPLE
index 7c6e57915bdc632a62df344ed572821b2b3b2941..607760473ed2ae206f15d5068a4c2d744c62cfe9 100644 (file)
@@ -46,7 +46,7 @@ strings separated by colons.
 For setting TLS 1.3 ciphers see CURLOPT_PROXY_TLS13_CIPHERS(3).
 
 A valid example of a cipher list is:
-~~~c
+~~~
 "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:"
 "ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305"
 ~~~
@@ -61,6 +61,9 @@ Find more details about cipher lists on this URL:
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL, use internal built-in list.
index 4ded737b5c2d95485a2c3e1fd663dcfa67eb810f..2294ec69c010c967d2da54745d16578f27c04b6f 100644 (file)
@@ -44,7 +44,7 @@ separated by colons.
 For setting TLS 1.2 (1.1, 1.0) ciphers see CURLOPT_PROXY_SSL_CIPHER_LIST(3).
 
 A valid example of a cipher list is:
-~~~c
+~~~
 "TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256"
 ~~~
 
@@ -55,6 +55,9 @@ Find more details about cipher lists on this URL:
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL, use internal built-in list
index edff372af96ce3bd1ec777307fa0d7ecd6d0049e..b92b2e27df0998710e98037fb206540c34946683 100644 (file)
@@ -40,6 +40,9 @@ CURLOPT_PROXY_TLSAUTH_USERNAME(3) option also be set.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index f67edd9f5ac8673f6f2240b08585cb7b23f8756f..436a570928f705d60981c4ddd7d8fd177d88628c 100644 (file)
@@ -36,6 +36,12 @@ Pass a pointer to a null-terminated string as parameter. The string should be
 the method of the TLS authentication used for the HTTPS connection. Supported
 method is "SRP".
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to restore to internal default.
+
+The application does not have to keep the string around after setting this
+option.
+
 ## SRP
 
 TLS-SRP authentication. Secure Remote Password authentication for TLS is
index db66735ad9a36d8504e4ed8640b202d83a07898c..6a25f74d7334709aed530ed9d8b959fba877ffeb 100644 (file)
@@ -40,6 +40,9 @@ CURLOPT_PROXY_TLSAUTH_PASSWORD(3) option also be set.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index 58742b7b3cd7f7d12b8d66c4f555149db1aece8a..410347142f14fc31b8a2e772ae8e7eb1f6c89a4b 100644 (file)
@@ -37,7 +37,9 @@ of 'struct curl_slist' structs properly filled in with text strings. Use
 curl_slist_append(3) to append strings (commands) to the list, and clear
 the entire list afterwards with curl_slist_free_all(3).
 
-Disable this operation again by setting a NULL to this option.
+Using this option multiple times makes the last set list override the previous
+ones. Set it to NULL to disable its use again. libcurl does not copy the list,
+it needs to be kept around until after the transfer has completed.
 
 When speaking to an FTP server, prefix the command with an asterisk (*) to
 make libcurl continue even if the command fails as by default libcurl stops at
@@ -151,6 +153,8 @@ int main(void)
 
     curl_easy_cleanup(curl);
   }
+
+  curl_slist_free_all(cmdlist);
 }
 ~~~
 
index 417e7702287e78e9ed1fdfbf9cb3465cf7c1eb65..6d728b1644dc68900d35ece35ccfdbea494a418c 100644 (file)
@@ -50,7 +50,8 @@ RTSP, byte ranges are **not** permitted. Instead, ranges should be given in
 For HTTP PUT uploads this option should not be used, since it may conflict with
 other options.
 
-Pass a NULL to this option to disable the use of ranges.
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
 
 The application does not have to keep the string around after setting this
 option.
index ea3a78cabf961a18e2838120117a4252766a80ab..2f14b04d00c6f3c32435fd3fb1ce5b5e0d6139c6 100644 (file)
@@ -33,8 +33,8 @@ CURLcode curl_easy_setopt(CURL *handle, CURLOPT_REDIR_PROTOCOLS_STR,
 Pass a pointer to a string that holds a comma-separated list of case
 insensitive protocol names (URL schemes). That list limits what protocols
 libcurl may use in a transfer that it follows to in a redirect when
-CURLOPT_FOLLOWLOCATION(3) is enabled. This option allows applications to
-limit specific transfers to only be allowed to use a subset of protocols in
+CURLOPT_FOLLOWLOCATION(3) is enabled. This option allows applications to limit
+specific transfers to only be allowed to use a subset of protocols in
 redirections.
 
 Protocols denied by CURLOPT_PROTOCOLS_STR(3) are not overridden by this
@@ -56,6 +56,12 @@ but are introduced in a future libcurl version.
 If trying to set a non-existing protocol or if no matching protocol at all is
 set, it returns error.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to restore to internal default.
+
+The application does not have to keep the string around after setting this
+option.
+
 # DEFAULT
 
 HTTP, HTTPS, FTP and FTPS (Added in 7.65.2).
index e4054e4abee54e9d41911e4f1c3d7ecf16afd092..e666411cfe544d838bda50f435bdec0caa4336b0 100644 (file)
@@ -35,6 +35,9 @@ set any custom header with CURLOPT_HTTPHEADER(3).
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index c96f0c352b51ae4f5fbc173677944ffcfc45e78a..fa4ff1d178b1106b060371d1b89827f98e1f5a05 100644 (file)
@@ -34,6 +34,12 @@ instead of the path as extracted from the URL.
 libcurl passes on the verbatim string in its request without any filter or
 other safe guards. That includes white space and control characters.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
+The application does not have to keep the string around after setting this
+option.
+
 # DEFAULT
 
 NULL
index f290a1c0217c71dced40d9d3127df8d80bc8bf94..a6db5b4281ff9b85f32191200ef88c2599a1e1c3 100644 (file)
@@ -34,11 +34,12 @@ list of **struct curl_slist** structs properly filled in. Use
 curl_slist_append(3) to create the list and curl_slist_free_all(3) to clean up
 an entire list.
 
+libcurl does not copy the list, it needs to be kept around until after the
+transfer has completed.
+
 Each resolve rule to add should be written using the format
 
-~~~c
- [+]HOST:PORT:ADDRESS[,ADDRESS]
-~~~
+    [+]HOST:PORT:ADDRESS[,ADDRESS]
 
 HOST is the name libcurl wants to resolve, PORT is the port number of the
 service where libcurl wants to connect to the HOST and ADDRESS is one or more
@@ -67,13 +68,14 @@ setting of CURLOPT_IPRESOLVE(3) to a different IP version.
 To remove names from the DNS cache again, to stop providing these fake
 resolves, include a string in the linked list that uses the format
 
-~~~
-  -HOST:PORT
-~~~
+    -HOST:PORT
 
 The entry to remove must be prefixed with a dash, and the hostname and port
 number must exactly match what was added previously.
 
+Using this option multiple times makes the last set list override the previous
+ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index 7ff0f7725c4b3b59bcdf4827930ef3bc19e6d0d3..36dc1eace68154c9b5592c17610e8e10ba3f3946 100644 (file)
@@ -36,6 +36,9 @@ server sets it in a response.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index 5e06afc439a2943f2e4865e3df8033d3d50d5abc..074b39486b3a78815fb42fb5651833294988edee 100644 (file)
@@ -40,6 +40,9 @@ to. (e.g. the CURLOPT_URL(3) for the above examples might be set to
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 "*"
index 75114120684798121e40e330c4bdc331cf14e089..f4058fc398d68c39343491abab6f2b46c33bb815 100644 (file)
@@ -31,14 +31,20 @@ Pass a char pointer as parameter, which should be pointing to the
 null-terminated authorization identity (*authzid*) for the transfer. Only
 applicable to the PLAIN SASL authentication mechanism where it is optional.
 
-When not specified only the authentication identity (*authcid*) as
-specified by the username is sent to the server, along with the password. The
-server derives a *authzid* from the *authcid* when not provided, which
-it then uses internally.
-
-When the *authzid* is specified, the use of which is server dependent, it
-can be used to access another user's inbox, that the user has been granted
-access to, or a shared mailbox for example.
+When not specified only the authentication identity (*authcid*) as specified
+by the username is sent to the server, along with the password. The server
+derives a *authzid* from the *authcid* when not provided, which it then uses
+internally.
+
+When the *authzid* is specified, the use of which is server dependent, it can
+be used to access another user's inbox, that the user has been granted access
+to, or a shared mailbox for example.
+
+The application does not have to keep the string around after setting this
+option.
+
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
 
 # DEFAULT
 
index 87d6c5c0e62b6bc91848075108bfa61ece3799bc..b928c9102b780417bbb74676ec3aaae5461fce59 100644 (file)
@@ -40,6 +40,9 @@ allows you to change them.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 See above
index 403570a4e6f2b804a0f48aa947f8ae4e3928352b..3ad3a63fedbde1939d8720aa128929e1f6fdddf4 100644 (file)
@@ -40,6 +40,9 @@ CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256(3) instead.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index 878e012e03c672d69459c1929366dd377dc8b8ad..cd8d6ecdb602395ffeb058c966f0c0e3be3b347e 100644 (file)
@@ -33,6 +33,12 @@ Pass a char pointer pointing to a string containing a Base64-encoded SHA256
 hash of the remote host's public key. The transfer fails if the given hash
 does not match the hash the remote host provides.
 
+The application does not have to keep the string around after setting this
+option.
+
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index a099af3a222e8ff76562643bf9fb5a463af3628a..8b7705b4be4be55ae741e7561723eddb9c3fee10 100644 (file)
@@ -37,6 +37,9 @@ behavior on host and key matches and mismatches.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index c9b3ab64bbf0c00bba92007436aa1c2c38502828..8669e9505e35f947c4eb031b0b7de7919efe9131 100644 (file)
@@ -48,13 +48,12 @@ in order to avoid confusion with a nickname.
 certificate store. (You can import *PFX* to a store first). You can use
 "\<store location\>\\\<store name\>\\\<thumbprint\>" to refer to a certificate
 in the system certificates store, for example,
-**"CurrentUser\\MY\\934a7ac6f8a5d579285a74fa"**. The thumbprint is usually a
-SHA-1 hex string which you can see in certificate details. Following store
-locations are supported: **CurrentUser**, **LocalMachine**,
-**CurrentService**, **Services**, **CurrentUserGroupPolicy**,
-**LocalMachineGroupPolicy**, **LocalMachineEnterprise**. Schannel also support
-P12 certificate file, with the string `P12` specified with
-CURLOPT_SSLCERTTYPE(3).
+**"CurrentUser\\MY\\934a7ac6f8a5d5"**. The thumbprint is usually a SHA-1 hex
+string which you can see in certificate details. Following store locations are
+supported: **CurrentUser**, **LocalMachine**, **CurrentService**,
+**Services**, **CurrentUserGroupPolicy**, **LocalMachineGroupPolicy**,
+**LocalMachineEnterprise**. Schannel also support P12 certificate file, with
+the string `P12` specified with CURLOPT_SSLCERTTYPE(3).
 
 When using a client certificate, you most likely also need to provide a
 private key with CURLOPT_SSLKEY(3).
@@ -62,6 +61,9 @@ private key with CURLOPT_SSLKEY(3).
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index 963e65cbd8f6388d69183ad9fa80709b6b457f7a..efde95b1636869a9efeaccf78b809a6e5025e71b 100644 (file)
@@ -44,6 +44,9 @@ files.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL restores back to internal default.
+
 # DEFAULT
 
 "PEM"
index 2e66aa8d05cfb879bedb6d4a3963a4a2ab5e9518..9bddf39fffa0f753e3be44f09cf2cf28161b9140 100644 (file)
@@ -35,6 +35,9 @@ identifier for the crypto engine you want to use for your private key.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index affa52827244d6f7db4ed13f48a548cb0556c319..13363ce2b0a3fc5451ea26ddd55db7346716e527 100644 (file)
@@ -43,6 +43,9 @@ in the key-chain or PKCS#12 file containing the certificate.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index 73e1a75478f59a6f5b622ea03bde7f09c28c7774..0f0106dc3fdd9b01441670cee59646be0cc23362 100644 (file)
@@ -42,6 +42,9 @@ currently does not work because of a bug in OpenSSL.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to restore to internal default.
+
 # DEFAULT
 
 "PEM"
index 495c6e92e116edbc3e17a66dfd1c5f9ac18c0a19..df57c837cc361836a3423289ee1473f2c0498db1 100644 (file)
@@ -45,7 +45,7 @@ separated by colons.
 For setting TLS 1.3 ciphers see CURLOPT_TLS13_CIPHERS(3).
 
 A valid example of a cipher list is:
-~~~c
+~~~
 "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:"
 "ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305"
 ~~~
@@ -60,6 +60,9 @@ Find more details about cipher lists on this URL:
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL, use built-in list
index d1459c4207851fe7e36ae1707e5d4567cba1245a..6256e25f7ecdd4a04be3a4022abcae6266778ed1 100644 (file)
@@ -25,14 +25,20 @@ CURLOPT_SSL_EC_CURVES - key exchange curves
 ~~~c
 #include <curl/curl.h>
 
-CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SSL_EC_CURVES, char *alg_list);
+CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SSL_EC_CURVES, char *list);
 ~~~
 
 # DESCRIPTION
 
-Pass a string as parameter with a colon delimited list of (EC) algorithms. This
-option defines the client's key exchange algorithms in the SSL handshake (if
-the SSL backend libcurl is built to use supports it).
+Pass a string as parameter with a colon delimited list of Elliptic curve (EC)
+algorithms. This option defines the client's key exchange algorithms in the
+SSL handshake (if the SSL backend libcurl is built to use supports it).
+
+The application does not have to keep the string around after setting this
+option.
+
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to restore back to internal default.
 
 # DEFAULT
 
index 34717cbed6e4e021977aa3fa055a737ed189bd04..85a92f8da0297a7bd846b05ede402247a0e6c409 100644 (file)
@@ -32,6 +32,12 @@ negotiations. The variables should be in the format \<option=value\>. libcurl
 supports the options **TTYPE**, **XDISPLOC** and **NEW_ENV**. See the TELNET
 standard for details.
 
+Using this option multiple times makes the last set list override the previous
+ones. Set it to NULL to disable its use again.
+
+libcurl does not copy the list, it needs to be kept around until after the
+transfer has completed.
+
 # DEFAULT
 
 NULL
index cc15dea0f4cff30ecca77bee9c808ae716281d15..e720db7bf944f7956f8eb4aebddb50fac84346b4 100644 (file)
@@ -55,6 +55,9 @@ Find more details about cipher lists on this URL:
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to restore to internal default.
+
 # DEFAULT
 
 NULL, use internal built-in
index f97108a96f0cfb9da2caada6b991b44de2538bc5..2548aa73d7f565920ff08b6ea02e597b9b7bccc1 100644 (file)
@@ -38,6 +38,9 @@ option also be set.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 This feature relies on TLS SRP which does not work with TLS 1.3.
 
 # DEFAULT
index 52c38a20d4fc1f8ede0cbe48faabb90cce474113..719095cf52502d30e6576c00953750e5367238e8 100644 (file)
@@ -32,6 +32,12 @@ CURLcode curl_easy_setopt(CURL *handle, CURLOPT_TLSAUTH_TYPE, char *type);
 Pass a pointer to a null-terminated string as parameter. The string should be
 the method of the TLS authentication. Supported method is "SRP".
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to restore to internal default.
+
+The application does not have to keep the string around after setting this
+option.
+
 ## SRP
 
 TLS-SRP authentication. Secure Remote Password authentication for TLS is
index 6715f75f1386d625e70f28400da422ce64322c15..9af68650b5e84148c030dfcf0b8489c806047255 100644 (file)
@@ -37,6 +37,9 @@ option also be set.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 This feature relies on TLS SRP which does not work with TLS 1.3.
 
 # DEFAULT
index f5197ee62614e87160ce2d40c5846882cab1d3f2..7b369f1902e41d699c03e6a5fda512db5e0fe2eb 100644 (file)
@@ -38,14 +38,17 @@ does not resolve the DNS hostname in the URL.
 The maximum path length on Cygwin, Linux and Solaris is 107. On other platforms
 it might be even less.
 
-Proxy and TCP options such as CURLOPT_TCP_NODELAY(3) are not
-supported. Proxy options such as CURLOPT_PROXY(3) have no effect either
-as these are TCP-oriented, and asking a proxy server to connect to a certain
-Unix domain socket is not possible.
+Proxy and TCP options such as CURLOPT_TCP_NODELAY(3) are not supported. Proxy
+options such as CURLOPT_PROXY(3) have no effect either as these are
+TCP-oriented, and asking a proxy server to connect to a certain Unix domain
+socket is not possible.
 
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL - no Unix domain sockets are used.
index 6046c9759ecc2ea7f0e7c1993a0f54761fe2d2a2..93dacdf27f7186517ac9fe81c8f6dae63e565f7e 100644 (file)
@@ -71,6 +71,10 @@ transfer is started.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again. Note however that
+libcurl needs a URL set to be able to performed a transfer.
+
 The parser used for handling the URL set with CURLOPT_URL(3) is the same
 that curl_url_set(3) uses.
 
index 1aeb1c9ab5afc9b7ace222911f65c923e657d08b..e10ff0cff0935ee1acfc29e7fa0a2dfbc26dbe42 100644 (file)
@@ -35,6 +35,9 @@ can also set any custom header with CURLOPT_HTTPHEADER(3).
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL, no User-Agent: header is used.
index 3d5e34d0131d1717e7b67059427f9301a01f9eee..b9db9faf6f96f6a77afae7a097c01f87bbdff5da 100644 (file)
@@ -63,6 +63,9 @@ for that, or include it in the URL.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL
index 061a1f69b938b561769aa35a747607e85d9f1b88..7428965833e116e30f113e8ed2f84470f12891ec 100644 (file)
@@ -40,6 +40,9 @@ Token should be supplied via the CURLOPT_USERNAME(3) option.
 The application does not have to keep the string around after setting this
 option.
 
+Using this option multiple times makes the last set string override the
+previous ones. Set it to NULL to disable its use again.
+
 # DEFAULT
 
 NULL