Charles復制出的CURL無法導入PostMan
如圖所示昧狮,復制CURL Request
當復制出來的Charles CURL數(shù)據(jù)不能成功導入PostMan刃泡,如下所示
這時候查看復制出來的數(shù)據(jù):
curl -H 'Host: xxx.com' -H 'Accept: application/json' -H 'User-Agent: kwai-ios' -H 'Accept-Language: zh-Hans-CN;q=1' --compressed 'http://xxx.com'
問題出現(xiàn)在結尾網(wǎng)址,請將結尾網(wǎng)址提到最前面就可以了苫昌。
curl 'http://xxx.com' -H 'Host: xxx.com' -H 'Accept: application/json' -H 'User-Agent: kwai-ios' -H 'Accept-Language: zh-Hans-CN;q=1' --compressed
這樣就OK了