我在爬取一个网站的信息,整个网站的 cookie 很奇葩 cookie 有两个 sid,同名但是值不同,我想知道这是怎么实现的
Request sent 82 bytes of Cookie data:
sid=f2348bca-e968-4119-970e-a16cd7d44701
sid=8b14c590-ca02-44c6-b654-63179e1e72e0
1
belin520 2019-10-14 22:52:48 +08:00 via iPhone
path? domain?
这 2 个值不同,都可以形成不同的组合 |
2
lokamir OP @belin520 一样的
Path N/A Domain N/A 下面是 har 文件里的 "cookies": [ { "name": "sid", "value": "c643889b-8ef9-42a4-91a4-8a3fab6376b9", "expires": null, "httpOnly": false, "secure": false }, { "name": "sid", "value": "9442665c-9ab6-45a4-9fc0-0dabe989d508", "expires": null, "httpOnly": false, "secure": false } |
3
lokamir OP https://imgchr.com/i/KpR0EV
图片在这里,大家可以看一下 |
4
whoami9894 2019-10-15 00:07:12 +08:00 via Android
可以把响应的 Set-Cookie 头发出来看下吗
|
5
whusnoopy 2019-10-15 10:36:03 +08:00
看截图,只有最后的 size 不一样,为什么会一个 42 一个 40
|
6
lokamir OP |
7
lokamir OP Accept:application/json, text/javascript, */*; q=0.01
Accept-Encoding:gzip, deflate Accept-Language:zh-CN,zh;q=0.9 Cache-Control:no-cache Connection:keep-alive Content-Length:407 Content-Type:application/x-www-form-urlencoded; charset=UTF-8 Cookie:sid=05df8028-a6b3-4590-845c-d279403744ad; sid=618708c2-9847-439b-9f55-d7d268f91111 Host:58.213.147.230:9080 Origin:http://58.213.147.230:9080 Pragma:no-cache Referer:http://58.213.147.230:9080/sewage/wscbb/sewagedayassay/list?year=2018&month=1 User-Agent:Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36 115Browser/9.2.1 X-Requested-With:XMLHttpRequest |