我使用.net 4.0的 HttpHelperV1.9.rar 进行网站POST登录和获取cookies。
登录时返回状态 通过和抓包结果对比 确认是已经抓包成功。
返回cook内容如下
[HTML] 纯文本查看 复制代码 nn6Q_2132_saltkey=F3TqMv8V; expires=Sat, 14-Oct-2017 13:35:35 GMT; path=/; httponly,nn6Q_2132_lastvisit=1505392535; expires=Sat, 14-Oct-2017 13:35:35 GMT; path=/,nn6Q_2132_lastact=1505396135%09member.php%09logging; expires=Fri, 15-Sep-2017 13:35:35 GMT; path=/,nn6Q_2132_pc_size_c=0; expires=Fri, 15-Sep-2017 13:35:35 GMT; path=/,nn6Q_2132_ulastactivity=1505396135%7C0; expires=Fri, 14-Sep-2018 13:35:35 GMT; path=/,nn6Q_2132_auth=f869ZrlYu9oWZUUzpK7roqm6yJs0NJa7gskUbT75uyG3%2BYjYzOlfs3Mdjnip4MeRqXK%2FvuPS5ZIRQKZGAgXVIkr%2B; path=/; httponly,nn6Q_2132_loginuser=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/,nn6Q_2132_activationauth=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/,nn6Q_2132_pmnum=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/,nn6Q_2132_lastcheckfeed=1034%7C1505396135; expires=Fri, 14-Sep-2018 13:35:35 GMT; path=/,nn6Q_2132_checkfollow=1; expires=Thu, 14-Sep-2017 13:36:05 GMT; path=/,nn6Q_2132_lip=183.228.243.8%2C1505396135; path=/
直接再提交这个 cook进行 GET页面。 返回的网页内容为未登录状态。意思是cook验证错误。
我手动整理cook为下图
[HTML] 纯文本查看 复制代码 nn6Q_2132_saltkey=Ntc01nCT; nn6Q_2132_lastvisit=1505394112;nn6Q_2132_lastact=1505397712%09member.php%09logging;nn6Q_2132_pc_size_c=0;nn6Q_2132_ulastactivity=1505397712%7C0;nn6Q_2132_auth=acdfnzX1KuJpyAxlQwbN7849Jw73zyBAzgMCqQZtU%2Bu8NJYNycfk3pQ6AjimioYf0ZBVRsZ9%2F7eAGVzWzAbTgwKn; path=/;nn6Q_2132_loginuser=deleted;nn6Q_2132_activationauth=deleted; nn6Q_2132_pmnum=deleted; nn6Q_2132_lastcheckfeed=1034%7C1505397712; nn6Q_2132_checkfollow=1;nn6Q_2132_lip=183.228.243.8%2C1505397712;
再次提交就成功了。 主要是删除了 expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/, 和 httponly,
这个是什么原因呢 我应该怎么处理啊
纯新手
|