diff options
Diffstat (limited to 'docs/libcurl/opts/CURLOPT_COOKIELIST.3')
-rw-r--r-- | docs/libcurl/opts/CURLOPT_COOKIELIST.3 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/libcurl/opts/CURLOPT_COOKIELIST.3 b/docs/libcurl/opts/CURLOPT_COOKIELIST.3 index 007baf5c4..d6af9aee3 100644 --- a/docs/libcurl/opts/CURLOPT_COOKIELIST.3 +++ b/docs/libcurl/opts/CURLOPT_COOKIELIST.3 @@ -9,7 +9,7 @@ .\" * .\" * This software is licensed as described in the file COPYING, which .\" * you should have received as part of this distribution. The terms -.\" * are also available at https://curl.haxx.se/docs/copyright.html. +.\" * are also available at https://curl.se/docs/copyright.html. .\" * .\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell .\" * copies of the Software, and permit persons to whom the Software is @@ -20,7 +20,7 @@ .\" * .\" ************************************************************************** .\" -.TH CURLOPT_COOKIELIST 3 "January 10, 2020" "libcurl 7.73.0" "curl_easy_setopt options" +.TH CURLOPT_COOKIELIST 3 "October 31, 2021" "libcurl 7.80.0" "curl_easy_setopt options" .SH NAME CURLOPT_COOKIELIST \- add to or manipulate cookies held in memory @@ -38,10 +38,10 @@ regular HTTP-style header (Set-Cookie: ...) format. This will also enable the cookie engine. This adds that single cookie to the internal cookie store. Exercise caution if you are using this option and multiple transfers may occur. -If you use the Set-Cookie format and don't specify a domain then the cookie is +If you use the Set-Cookie format and do not specify a domain then the cookie is sent for any domain (even after redirects are followed) and cannot be modified by a server-set cookie. If a server sets a cookie of the same name (or maybe -you've imported one) then both will be sent on a future transfer to that +you have imported one) then both will be sent on a future transfer to that server, likely not what you intended. To address these issues set a domain in Set-Cookie (doing that will include sub-domains) or use the Netscape format as shown in EXAMPLE. @@ -91,7 +91,7 @@ curl_easy_setopt(curl, CURLOPT_COOKIELIST, my_cookie); before a transfer is performed. Cookies in the list that have the same hostname, path and name as in my_cookie are skipped. That is because libcurl has already imported my_cookie and it's considered a "live" -cookie. A live cookie won't be replaced by one read from a file. +cookie. A live cookie will not be replaced by one read from a file. */ curl_easy_setopt(curl, CURLOPT_COOKIEFILE, "cookies.txt"); /* import */ @@ -108,7 +108,7 @@ curl_easy_cleanup(curl); /* cookies exported to cookies.txt */ .SH "Cookie file format" The cookie file format and general cookie concepts in curl are described in the HTTP-COOKIES.md file, also hosted online here: -https://curl.haxx.se/docs/http-cookies.html +https://curl.se/docs/http-cookies.html .SH AVAILABILITY ALL was added in 7.14.1 |