通过请求 http://httpbin.org/get 获得类似以下信息:
只是一部分上图:
{
"args": {},
"headers": {
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"Accept-Encoding": "gzip, deflate",
"Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8",
"Cache-Control": "max-age=0",
"Connection": "close",
"Cookie": "_gauges_unique_month=1; _gauges_unique_year=1; _gauges_unique=1",
"Host": "httpbin.org",
"Upgrade-Insecure-Requests": "1",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36"
},
"origin": "112.5.201.235",
"url": "http://httpbin.org/get"
从origin 可知目前请求的ip
方法二:检测是否可以用在https
curl https://httpbin.org/get --proxy xxx:xxx --connect-timeout 10
若正常返回就是支持https的,否则不支持
有任何问题可以联系学姐哟~或者可以在文末留言
DKA-2018