当前位置:编程学习 > JAVA >>

httpclient 获取的cookie 比浏览器 少

访问 http://reg.email.163.com/unireg/call.do?cmd=register.entrance

浏览器会发送请求到https://ssl.mail.163.com/regall/unireg/prepare.jsp?sid=441D9DA169B54D4A4DFDBAD4A2930F07(sid为已获得的cookie_JSESSIONID)获得3个返回cookies

Set-Cookie:
JSESSIONID=C8F7C22F1BAE983487C98F43C4C54BCB; Path=/unireg
Set-Cookie:
mailsync=40822d7c815b8e88bda735cb968a2553b208b9d8f76ada5e9f414f915446b788aab13c27dbf7165da8dc42bce97830b5; Path=/; Secure
Set-Cookie:
JSESSIONID=441D9DA169B54D4A4DFDBAD4A2930F07; Path=/regall/unireg/; Secure


用httpclient 模拟 只获得已知的一个cookie

JSESSIONID=441D9DA169B54D4A4DFDBAD4A2930F07
补充:Java ,  Java相关
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,