curl命令测试https

curl  -vosa --resolve pic.test.net:443:222.241.7.179  https://pic.test.net/UploadFiles/201312031744347965.jpg

curl 构造refer测试访问

curl --referer "*sougou*"  -vosa --resolve pic.test.com:10.10.10.10 https://pic.test.com/Uploads/Picture/2017-01-25/5887fd95b2bee.jpg
curl --referer "*Baiduspider*"  -vosa --resolve pic.test.com:443:10.10.10.10 https://pic.test.com/Uploads/Picture/2017-01-25/5887fd95b2bee.jpg
curl --referer ""  -vosa --resolve pic.test.com:443:10.10.10.10 https://pic.test.com/Uploads/Picture/2017-01-25/5887fd95b2bee.jpg

如果是http:
curl -vosa -x 10.10.10.10:80 http://img.test.com/97e/2a8f1979bda20.jpg -e "http://test.com/lu"

curl 构造ua测试访问

curl --user-agent "Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html"  -vosa --resolve pic.test.com:443:10.10.10.10 https://pic.test.com/Uploads/Picture/2017-01-25/5887fd95b2bee.jpg
curl --user-agent "baidu"  -vosa --resolve pic.test.com:443:10.10.10.10 https://pic.test.com/Uploads/Picture/2017-01-25/5887fd95b2bee.jpg

当然,ua和refer可以一起构造

posted @ 2017-08-09 14:49  行知散人  阅读(2276)  评论(0编辑  收藏  举报