From: Daniel Stenberg Date: Wed, 26 Apr 2017 22:27:59 +0000 (+0200) Subject: cookie_interface.c: fix cookie domain so the example works X-Git-Tag: curl-7_54_1~221 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=afe05ee2eebeea574aa5cc3fd62e5ede3d821342;p=thirdparty%2Fcurl.git cookie_interface.c: fix cookie domain so the example works --- diff --git a/docs/examples/cookie_interface.c b/docs/examples/cookie_interface.c index 064c7b3294..3341d34974 100644 --- a/docs/examples/cookie_interface.c +++ b/docs/examples/cookie_interface.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2016, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2017, Daniel Stenberg, , 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",