1.美图
2. 背景
一个项目要写shell ,要调用一个接口,这个接口很麻烦,传参很多,一个一个的弄很难,后来发现浏览器自带的小技巧,非常好用
拷贝的url是直接可以在命令行中执行的
curl 'http://blog.sina.com.cn/s/related_13b6bb98f0102wyz0.js?cate_id=&sort_id=117' -H 'Connection: keep-alive' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36' -H 'Accept: */*' -H 'Referer: http://blog.sina.com.cn/s/blog_13b6bb98f0102wyz0.html' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: zh-CN,zh;q=0.9' -H 'Cookie: blogAppAd_blog7article=1; UM_distinctid=16e50acfe49641-0a6ed5c8a98aca-1c3e6a5a-13c680-16e50acfe4a7bd; UOR=www.baidu.com,t.cj.sina.com.cn,; ULV=1574233214954:1:1:1::; SINAGLOBAL=202.62.112.67_1574233215.686655; U_TRS1=00000098.4425254.5de36dad.4838fe3c; gr_user_id=02350d5a-0f73-4779-9113-b1e3647c0815; grwng_uid=d3c9d464-fff8-41df-af86-85f79580e438; U_TRS2=000000f2.7486727d.5e12d9b8.cb69264b' --compressed --insecure