卷曲命令已被拆分

时间:2016-07-02 10:19:54

标签: curl

我不熟悉Curl,只需从其他人那里拿走这个cmd,只需运行

即可
curl -H "X-Forwarded-For: 58.251.37.181" -H "CLIENT-IP: 58.251.37.181" -e "http://www.baidu.com/" -k "https://xx.com/swapp/supplygdconfig?req_data={instime:20160630,supplyid:1,version:3.4.2545.9,st:3,jq:0,ohtercmd..}"  >d:\1.txt

它是

[1/9]: https://xx.com/swapp/supplygdconfig?req_data=instime:20160630
--> <stdout>
--_curl_--https://xx.com/swapp/supplygdconfig?req_data=instime:20160630
 {"code":"101","subcode":"0","message":"\u7f3a\u5931\u5fc5\u8981\u53c2\u6570\u9519\u8bef"}
[2/9]: https://xx.com/swapp/supplygdconfig?req_data=supplyid:1 --> <stdout>
--_curl_--https://xx.com/swapp/supplygdconfig?req_data=supplyid:1
{"code":"101","subcode":"0","message":"\u7f3a\u5931\u5fc5\u8981\u53c2\u6570\u951
9\u8bef"}
...

似乎Curl将我的网站命令字符串拆分为键值,只有一个键值eash时间,它毫无意义。 我只是不知道为什么卷曲这样做并且没有找到如何解决这个问题:(

任何建议都将不胜感激

1 个答案:

答案 0 :(得分:0)

搞清楚发生了什么。 从最后一个命令中的各种符号开始分裂。

{"instime":20160630

应该像

%7B%22instime%22%3A%20160630 
相关问题