cURL

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1365 CURLINFO_COOKIELIST Read Cookie Error!

From: Daniel Stenberg <bagder_at_users.sf.net>
Date: Mon, 28 Apr 2014 12:00:14 +0000

Yes, I tried the exact same site with 7.36.0 and it works for me. Which is the exact curl version you use. The first curl version 7 was released almost 14 years ago, please show us the full version string.

---
** [bugs:#1365] CURLINFO_COOKIELIST Read Cookie Error!**
**Status:** pending
**Labels:** cookies 
**Created:** Mon Apr 28, 2014 10:10 AM UTC by cndword
**Last Updated:** Mon Apr 28, 2014 11:46 AM UTC
**Owner:** Daniel Stenberg
I Use CURLINFO_COOKIELIST to Read Cookie,Server Return 3 Cookie怂but I Only Read 2.

URL:http://www.baidu.com


server return Header By HTTP Capture Tools.


HTTP/1.1 200 OK
Date: Mon, 28 Apr 2014 09:27:40 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: Keep-Alive
Vary: Accept-Encoding
Set-Cookie: BAIDUID=1E58D3710C684D4FD05FC02E2FBE9DB9:FG=1; expires=Thu, 31-Dec-37 23:55:55 GMT; max-age=2147483647; path=/; domain=.baidu.com
Set-Cookie: BDSVRTM=0; path=/
Set-Cookie: H_PS_PSSID=6171_5826_1438_5224_6024_4759_6018_6258_5856_6278_6269; path=/; domain=.baidu.com
P3P: CP=" OTI DSP COR IVA OUR IND COM "
Cache-Control: private
Expires: Mon, 28 Apr 2014 09:27:28 GMT
X-Powered-By: HPHP
Server: BWS/1.1
BDPAGETYPE: 1
BDQID: 0xd2da22840001808b
BDUSERID: 0
Content-Encoding: gzip



but CURLINFO_COOKIELIST Option  Can Only read 2 ,like this

www.baidu.com	FALSE	/	FALSE	0	BDSVRTM	0
.baidu.com	TRUE	/	FALSE	0	H_PS_PSSID	6149_5228_1456_5225_6155_6024_4760_6018_6258_5856_6191_6270




the same things Is Happened in curl.exe.


curl -b cookies.txt -c cookies.txt www.baidu.com

Cookies.txt is the next:

www.baidu.com	FALSE	/	FALSE	0	BDSVRTM	0
.baidu.com	TRUE	/	FALSE	0	H_PS_PSSID	6012_1442_5225_6023_4759_6018_6258_5856_6151_6270


but server return is: 

HTTP/1.1 200 OK
Date: Mon, 28 Apr 2014 10:08:45 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: Keep-Alive
Vary: Accept-Encoding
Set-Cookie: BAIDUID=80ABCDC5ECA11B936A96BC52D084AAB9:FG=1; expires=Thu, 31-Dec-37 23:55:55 GMT; max-age=2147483647; path=/; domain=.baidu.com
Set-Cookie: BDSVRTM=0; path=/
Set-Cookie: H_PS_PSSID=6012_1442_5225_6023_4759_6018_6258_5856_6151_6270; path=/; domain=.baidu.com
P3P: CP=" OTI DSP COR IVA OUR IND COM "
Cache-Control: private
Expires: Mon, 28 Apr 2014 10:08:08 GMT
X-Powered-By: HPHP
Server: BWS/1.1
BDPAGETYPE: 1
BDQID: 0xdc0520e500040516
BDUSERID: 0
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-04-28

These mail archives are generated by hypermail.

donate! Page updated March 21, 2014.
web site info

File upload with ASP.NET