Skip to content

Instantly share code, notes, and snippets.

@Jiezhi
Created March 12, 2017 13:10
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 11 You must be signed in to fork a gist
  • Save Jiezhi/d02c46449dda06ed0866757bc7ea92c2 to your computer and use it in GitHub Desktop.
Save Jiezhi/d02c46449dda06ed0866757bc7ea92c2 to your computer and use it in GitHub Desktop.
replace your curl
for (( i=1; i>0; i++ ))
do
curl 'https://www.google.com/voice/b/0/service/post' -H 'origin: https://www.google.com' -H 'dnt: 1' -H 'accept-encoding: gzip, deflate, br' -H 'accept-language: zh-CN,zh;q=0.8,en;q=0.6' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36' -H 'content-type: application/x-www-form-urlencoded;charset=UTF-8' -H 'accept: */*' -H 'referer: https://www.google.com/voice/b/0' -H 'authority: www.google.com' -H 'cookie: gv=.........; GV_NR=1;-eVupmL6qR...........ncdG7vO' --data 'sid=...' --compressed
sleep 3s
done
@szh7379
Copy link

szh7379 commented Mar 28, 2017

求教
获取 curl 链接的代理地址要是跟 vps 不一样是不是会有影响? vps 重新运行脚本, curl 地址会不会失效?需要重新获取 curl 链接不? windows 获取的 curl , vps 是 linux ,看里边有 useragent ,会不会有影响?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment