* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2012, 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
* KIND, either express or implied.
*
***************************************************************************/
-/* <DESC>
- * Import and export cookies with COOKIELIST.
- * </DESC>
- */
+/* This example shows usage of simple cookie interface. */
#include <stdio.h>
#include <string.h>
return 1;
}
- /* HTTP-header style cookie. If you use the Set-Cookie format and don't
- specify a domain then the cookie is sent for any domain and will not be
- modified, likely not what you intended. Starting in 7.43.0 any-domain
- cookies will not be exported either. For more information refer to the
- CURLOPT_COOKIELIST documentation.
- */
+ /* HTTP-header style cookie */
snprintf(nline, sizeof(nline),
"Set-Cookie: OLD_PREF=3d141414bf4209321; "
"expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com");