summaryrefslogtreecommitdiff
path: root/docs/libcurl/opts/GNURLINFO_COOKIELIST.3
diff options
context:
space:
mode:
Diffstat (limited to 'docs/libcurl/opts/GNURLINFO_COOKIELIST.3')
-rw-r--r--docs/libcurl/opts/GNURLINFO_COOKIELIST.36
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/libcurl/opts/GNURLINFO_COOKIELIST.3 b/docs/libcurl/opts/GNURLINFO_COOKIELIST.3
index 280ac0c9f..2335f71db 100644
--- a/docs/libcurl/opts/GNURLINFO_COOKIELIST.3
+++ b/docs/libcurl/opts/GNURLINFO_COOKIELIST.3
@@ -45,8 +45,8 @@ CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
- /* enable the cookie engine with a non-existing file */
- curl_easy_setopt(curl, CURLOPT_COOKIEFILE, "-");
+ /* enable the cookie engine */
+ curl_easy_setopt(curl, CURLOPT_COOKIEFILE, "");
res = curl_easy_perform(curl);
@@ -58,7 +58,7 @@ if(curl) {
/* a linked list of cookies in cookie file format */
struct curl_slist *each = cookies;
while(each) {
- printf("%s", each->data);
+ printf("%s\\n", each->data);
each = each->next;
}
/* we must free these cookies when we're done */