|
楼主 |
发表于 2016-4-7 14:03:59
|
显示全部楼层
https://sso.youshang.com/loginSe ... fg567&authCode=
这个链接是可以直接通过浏览器地址栏打开到登陆成功界面的,而通过万能框架发送GET请求,返回的报文不是登陆成功界面报文,而是下文中的一串HTML表单
使用Fiddler抓取报文如下
<HTML>
<HEAD>
<TITLE>Access rights validated</TITLE>
</HEAD>
<BODY Onload="document.forms[0].submit()">
<FORM METHOD="POST" ACTION="http://www.youshang.com/sso/handle.php">
<INPUT TYPE="HIDDEN" NAME="dl" VALUE="true">
<INPUT TYPE="HIDDEN" NAME="cipherCode" VALUE="SAHlUKdLrMdDgTbGnZQ5zCxI5rHZnGyaSxsXuVWjrjML5GX+C0F5M0TWCKrZXUWuVkl6A1fzWvUDW309QH6pKl5DY318JNf/XXjK9EwkV5yr/HV9v9DL1cqCwgqbvs7te0Lb+ooKEF9Z8S5bsA2nrDnxYw/Fxx/gNGAjYgEvIBBmq91Dz19DXBeS7O2Ot7I4BFJ5l0t1cIGBE2sDX/hZD/i2eUlyBeH/lXwqd90zJrF8CJE1i7XAKwlrJDASFI0bzYx4zssJ4xbAX7jb+VP8osC4ufkVO1C0nH/CIjblrRFOBfV+C16AwhEPWkL3nkF3RMJOoQyUtOujuDjn+RxBxx/tqvqRtikXNDipeOwQaavJ97NQLxSIga/8/HbL+quuTmWQXyrDtBey1c8AiAi09jVmd65jDhgZMGqRTwXzcKStM2zu2Zp6qwtAGZ+EBVme/HwSeSoAaVQQoMW+iwJ7m8PT41t+H+u/2fkP0L9ad5XMwFu8eHl+9O9HdAvFp1sT8e/vs3jv7SAFSy5EXxpbVBO5Ulp6Y1CUyD4hsVK/kyca0A8OYpUrpBjVQ46WnVAYNwBm24D6chYyYX+GvHXCBZMUeq9ExfVshqsek/3Eq5+f9hJWY6KokJzHHIrxQi5JBrTp40XFo02+MhHxiQ1Xopxxi6jN4jOX8GsZchrBLBEkVVzo7Wi3Ql+MYF/Gsbe7wU95HyV7MgXHZ7hadw4foBxoSRrSJ4fe2848s4pvUVLOoIETDwjhKohZdW5ffBoz27KLBnuGRdU45I8UvzbCRYboCJK2ZQfRANMvlpojDKTO13Z3M3ozcPL5IqhFh7y14rHG9eozRDktsBdcNU6F1UKjmAA9VXrp4dPiQJ8RIhUgoaPn6y2vLZSGx2srBv3TZBsvk4b61fdFUjoakgKQVYL1aXa9aAiDLx1MN+WRw+QRaJrMckCZFbvSsae0NpmAJy6N1S0jpCeYnJyTh4uOInvZXGz+LnINQCFachsrVxPzqwsIT44nLAZ69FAdQ+fBjGIUBrUAMIqO5lMxTZ5kjezIrJgTG5HGRVTLb8mflF71CWNSr2oBpvP5061jOWJ/">
<INPUT TYPE="HIDDEN" NAME="iv" VALUE="cc9f5402-e5c7-49">
<INPUT TYPE="HIDDEN" NAME="ssoToken" VALUE="7C5982E10BD3D61EB582950401503272">
<INPUT TYPE="HIDDEN" NAME="checkTime" VALUE="true">
<INPUT TYPE="HIDDEN" NAME="loginResult" VALUE="OK7C5982E10BD3D61EB582950401503272">
<INPUT TYPE="HIDDEN" NAME="name" VALUE="yuanbangbao">
</FORM></BODY></HTML>
cookie值如下
Request sent 148 bytes of Cookie data:
JSESSIONID=7C5982E10BD3D61EB582950401503272
Hm_lvt_5cfb0bf528eff17176d36b242ea6440c=1460008646
Hm_lpvt_5cfb0bf528eff17176d36b242ea6440c=1460008646
headers 值如下
GET /loginServlet?entityId=assistant&assertHashType=3&needAuth=N&RelayState=http%3A%2F%2Fwww.youshang.com%2Fsso%2Fhandle.php&isYSLogin=1&name=yuanbangbao&password=Asdfg567&authCode= HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer: http://www.youshang.com/
Accept-Language: zh-CN
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Accept-Encoding: gzip, deflate
Host: sso.youshang.com
DNT: 1
Connection: Keep-Alive
Cookie: JSESSIONID=7C5982E10BD3D61EB582950401503272; Hm_lvt_5cfb0bf528eff17176d36b242ea6440c=1460008646; Hm_lpvt_5cfb0bf528eff17176d36b242ea6440c=1460008646
|
|