cURL请求不符合预期。请求失败

时间:2016-09-20 20:30:55

标签: curl

我有以下scrippt(片段):

# URL to save
curl -s -i -b cookies.txt  -X POST -H "Content-Type: application/x-www-form" https://www.myhosttech.eu/user-dns/zonesave 

此请求应为“application / x-www-form”,但请求以json的形式执行。根据文件,情况并非如此。

输出像:

HTTP/1.1 200 OK
Date: Tue, 20 Sep 2016 20:14:25 GMT
Server: Apache/2.4.10 (Debian)
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Length: 67
Content-Type: application/json

有什么想法吗?

修改

curl -s -i -b cookies.txt  -X POST -H "Content-Type: application/x-www-form" --data-raw @temp.txt https://www.myhosttech.eu/user-dns/zonesave 

我无法保存temp.txt中的数据。

temp.txt我是从HTTP Header insnpection复制的

0 个答案:

没有答案