mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
cookies: change the URL in the cookie jar file header
This commit is contained in:
parent
016dabcf04
commit
c75ece4442
@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, 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
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@ -1069,7 +1069,7 @@ static int cookie_output(struct CookieInfo *c, const char *dumphere)
|
|||||||
char *format_ptr;
|
char *format_ptr;
|
||||||
|
|
||||||
fputs("# Netscape HTTP Cookie File\n"
|
fputs("# Netscape HTTP Cookie File\n"
|
||||||
"# http://curl.haxx.se/rfc/cookie_spec.html\n"
|
"# http://curl.haxx.se/docs/http-cookies.html\n"
|
||||||
"# This file was generated by libcurl! Edit at your own risk.\n\n",
|
"# This file was generated by libcurl! Edit at your own risk.\n\n",
|
||||||
out);
|
out);
|
||||||
co = c->cookies;
|
co = c->cookies;
|
||||||
|
@ -52,7 +52,7 @@ userid=myname&password=mypassword
|
|||||||
</protocol>
|
</protocol>
|
||||||
<file name="log/cookie1105.txt">
|
<file name="log/cookie1105.txt">
|
||||||
# Netscape HTTP Cookie File
|
# Netscape HTTP Cookie File
|
||||||
# http://curl.haxx.se/rfc/cookie_spec.html
|
# http://curl.haxx.se/docs/http-cookies.html
|
||||||
# This file was generated by libcurl! Edit at your own risk.
|
# This file was generated by libcurl! Edit at your own risk.
|
||||||
|
|
||||||
127.0.0.1 FALSE /we/want/ FALSE 0 foobar name
|
127.0.0.1 FALSE /we/want/ FALSE 0 foobar name
|
||||||
|
@ -49,7 +49,7 @@ Proxy-Connection: Keep-Alive
|
|||||||
</protocol>
|
</protocol>
|
||||||
<file name="log/jar171" mode="text">
|
<file name="log/jar171" mode="text">
|
||||||
# Netscape HTTP Cookie File
|
# Netscape HTTP Cookie File
|
||||||
# http://curl.haxx.se/rfc/cookie_spec.html
|
# http://curl.haxx.se/docs/http-cookies.html
|
||||||
# This file was generated by libcurl! Edit at your own risk.
|
# This file was generated by libcurl! Edit at your own risk.
|
||||||
|
|
||||||
.z.x.com TRUE / FALSE 0 XToken xt
|
.z.x.com TRUE / FALSE 0 XToken xt
|
||||||
|
@ -31,7 +31,7 @@ http://%HOSTIP:%HTTPPORT/we/want/172 -b log/jar172.txt -b "tool=curl; name=fool"
|
|||||||
</command>
|
</command>
|
||||||
<file name="log/jar172.txt">
|
<file name="log/jar172.txt">
|
||||||
# Netscape HTTP Cookie File
|
# Netscape HTTP Cookie File
|
||||||
# http://curl.haxx.se/rfc/cookie_spec.html
|
# http://curl.haxx.se/docs/http-cookies.html
|
||||||
# This file was generated by libcurl! Edit at your own risk.
|
# This file was generated by libcurl! Edit at your own risk.
|
||||||
|
|
||||||
.%HOSTIP TRUE /silly/ FALSE 0 ismatch this
|
.%HOSTIP TRUE /silly/ FALSE 0 ismatch this
|
||||||
|
@ -87,7 +87,7 @@ Accept: */*
|
|||||||
</protocol>
|
</protocol>
|
||||||
<file name="log/jar31.txt" mode="text">
|
<file name="log/jar31.txt" mode="text">
|
||||||
# Netscape HTTP Cookie File
|
# Netscape HTTP Cookie File
|
||||||
# http://curl.haxx.se/rfc/cookie_spec.html
|
# http://curl.haxx.se/docs/http-cookies.html
|
||||||
# This file was generated by libcurl! Edit at your own risk.
|
# This file was generated by libcurl! Edit at your own risk.
|
||||||
|
|
||||||
.127.0.0.1 TRUE /silly/ FALSE 0 ismatch this
|
.127.0.0.1 TRUE /silly/ FALSE 0 ismatch this
|
||||||
|
@ -46,7 +46,7 @@ TZ=GMT
|
|||||||
</command>
|
</command>
|
||||||
<file name="log/injar46">
|
<file name="log/injar46">
|
||||||
# Netscape HTTP Cookie File
|
# Netscape HTTP Cookie File
|
||||||
# http://curl.haxx.se/rfc/cookie_spec.html
|
# http://curl.haxx.se/docs/http-cookies.html
|
||||||
# This is generated by libcurl! Do not edit.
|
# This is generated by libcurl! Do not edit.
|
||||||
|
|
||||||
www.fake.come FALSE / FALSE 1022144953 cookiecliente si
|
www.fake.come FALSE / FALSE 1022144953 cookiecliente si
|
||||||
@ -71,7 +71,7 @@ Cookie: empty=; mooo2=indeed2; mooo=indeed
|
|||||||
</protocol>
|
</protocol>
|
||||||
<file name="log/jar46" mode="text">
|
<file name="log/jar46" mode="text">
|
||||||
# Netscape HTTP Cookie File
|
# Netscape HTTP Cookie File
|
||||||
# http://curl.haxx.se/rfc/cookie_spec.html
|
# http://curl.haxx.se/docs/http-cookies.html
|
||||||
# This file was generated by libcurl! Edit at your own risk.
|
# This file was generated by libcurl! Edit at your own risk.
|
||||||
|
|
||||||
www.fake.come FALSE / FALSE 1022144953 cookiecliente si
|
www.fake.come FALSE / FALSE 1022144953 cookiecliente si
|
||||||
|
@ -168,7 +168,7 @@ http://%HOSTIP:%HTTPPORT/506
|
|||||||
</stderr>
|
</stderr>
|
||||||
<file name="log/jar506" mode="text">
|
<file name="log/jar506" mode="text">
|
||||||
# Netscape HTTP Cookie File
|
# Netscape HTTP Cookie File
|
||||||
# http://curl.haxx.se/rfc/cookie_spec.html
|
# http://curl.haxx.se/docs/http-cookies.html
|
||||||
# This file was generated by libcurl! Edit at your own risk.
|
# This file was generated by libcurl! Edit at your own risk.
|
||||||
|
|
||||||
.foo.com TRUE / FALSE 1993463787 test1 overwritten1
|
.foo.com TRUE / FALSE 1993463787 test1 overwritten1
|
||||||
|
@ -61,7 +61,7 @@ Host: www.host.foo.com
|
|||||||
</protocol>
|
</protocol>
|
||||||
<file name="log/jar61.txt" mode="text">
|
<file name="log/jar61.txt" mode="text">
|
||||||
# Netscape HTTP Cookie File
|
# Netscape HTTP Cookie File
|
||||||
# http://curl.haxx.se/rfc/cookie_spec.html
|
# http://curl.haxx.se/docs/http-cookies.html
|
||||||
# This file was generated by libcurl! Edit at your own risk.
|
# This file was generated by libcurl! Edit at your own risk.
|
||||||
|
|
||||||
#HttpOnly_.foo.com TRUE /we/want/ FALSE 2054030187 test yes
|
#HttpOnly_.foo.com TRUE /we/want/ FALSE 2054030187 test yes
|
||||||
|
@ -33,7 +33,7 @@ http://%HOSTIP:%HTTPPORT/we/want/62 -b log/jar62.txt -H "Host: www.host.foo.com"
|
|||||||
</command>
|
</command>
|
||||||
<file name="log/jar62.txt">
|
<file name="log/jar62.txt">
|
||||||
# Netscape HTTP Cookie File
|
# Netscape HTTP Cookie File
|
||||||
# http://curl.haxx.se/rfc/cookie_spec.html
|
# http://curl.haxx.se/docs/http-cookies.html
|
||||||
# This file was generated by libcurl! Edit at your own risk.
|
# This file was generated by libcurl! Edit at your own risk.
|
||||||
|
|
||||||
#HttpOnly_.foo.com TRUE /we/want/ FALSE 2054030187 test yes
|
#HttpOnly_.foo.com TRUE /we/want/ FALSE 2054030187 test yes
|
||||||
|
@ -46,7 +46,7 @@ Host: host.NOT_DISCLOSED.se
|
|||||||
</protocol>
|
</protocol>
|
||||||
<file name="log/jar73.txt" mode="text">
|
<file name="log/jar73.txt" mode="text">
|
||||||
# Netscape HTTP Cookie File
|
# Netscape HTTP Cookie File
|
||||||
# http://curl.haxx.se/rfc/cookie_spec.html
|
# http://curl.haxx.se/docs/http-cookies.html
|
||||||
# This file was generated by libcurl! Edit at your own risk.
|
# This file was generated by libcurl! Edit at your own risk.
|
||||||
|
|
||||||
.NOT_DISCLOSED.se TRUE / FALSE 0 IPCZQX01af0fca5c 000010008168c200d25dfc4b
|
.NOT_DISCLOSED.se TRUE / FALSE 0 IPCZQX01af0fca5c 000010008168c200d25dfc4b
|
||||||
|
Loading…
Reference in New Issue
Block a user