在shell下可以通过简单的curl模拟登录请求。
curl –cookie ‘a=123;b=456’ 请求的时候带多个cookie
curl -d ‘a=123&b=456’ 请求的时候带的post
curl http://xxx.xx.com –cookie ‘a=123;b=456’ -d ‘a=123&b=456’ 注意分隔符,就是带了Post和cookie一起。
curl –user-agent ‘iphone’ 设置user-agent
curl –refer ‘http://www.baidu.com’ 设置refer