比如这样的一个 post
POST http://bbs.website.com/shop.php HTTP/1.1
Host: bbs.website.com
Accept: application/json, text/javascript, */*; q=0.01
Proxy-Connection: keep-alive
X-Requested-With: XMLHttpRequest
Accept-Encoding: gzip, deflate
Accept-Language: zh-cn
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Origin: http://bbs.website.com
Content-Length: 15
Connection: keep-alive
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Mobile/14F89
Referer: http://bbs.website.com/shop.php
Cookie: cid=a8d69UJlhC20nTbgvCVxd%2FeUSYoTnP5YJ0Ps0lzh7g; rand=ed4awTOB1U; acw_tc=AQAAAGrGOS/Ibg4AY7c5cZRocGCvrhpM;
这个 header 是从手机上的 anyflow 嗅探来的一个 request,现在有没有什么方法能直接转成方便直接发送的格式(比如 curl,或者 python 的 requests 也行)?
POST http://bbs.website.com/shop.php HTTP/1.1
Host: bbs.website.com
Accept: application/json, text/javascript, */*; q=0.01
Proxy-Connection: keep-alive
X-Requested-With: XMLHttpRequest
Accept-Encoding: gzip, deflate
Accept-Language: zh-cn
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Origin: http://bbs.website.com
Content-Length: 15
Connection: keep-alive
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Mobile/14F89
Referer: http://bbs.website.com/shop.php
Cookie: cid=a8d69UJlhC20nTbgvCVxd%2FeUSYoTnP5YJ0Ps0lzh7g; rand=ed4awTOB1U; acw_tc=AQAAAGrGOS/Ibg4AY7c5cZRocGCvrhpM;
这个 header 是从手机上的 anyflow 嗅探来的一个 request,现在有没有什么方法能直接转成方便直接发送的格式(比如 curl,或者 python 的 requests 也行)?