diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-04-27 00:27:59 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-04-27 00:27:59 +0200 |
commit | afe05ee2eebeea574aa5cc3fd62e5ede3d821342 (patch) | |
tree | 7211b5e4f2d90b50ca48978f53cc814414930087 /docs | |
parent | 8b03436d3cc7b8b0359b5a658c38fe52484dcd61 (diff) |
cookie_interface.c: fix cookie domain so the example works
Diffstat (limited to 'docs')
-rw-r--r-- | docs/examples/cookie_interface.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/examples/cookie_interface.c b/docs/examples/cookie_interface.c index 064c7b329..3341d3497 100644 --- a/docs/examples/cookie_interface.c +++ b/docs/examples/cookie_interface.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2017, 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 @@ -93,9 +93,9 @@ main(void) #endif /* Netscape format cookie */ snprintf(nline, sizeof(nline), "%s\t%s\t%s\t%s\t%lu\t%s\t%s", - ".google.com", "TRUE", "/", "FALSE", + ".example.com", "TRUE", "/", "FALSE", (unsigned long)time(NULL) + 31337UL, - "PREF", "hello google, i like you very much!"); + "PREF", "hello example, i like you very much!"); res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, nline); if(res != CURLE_OK) { fprintf(stderr, "Curl curl_easy_setopt failed: %s\n", |