卷曲 - 数据命令用法

时间:2016-10-01 15:51:20

标签: linux curl

我使用以下命令获取网站数据

curl --data' {" xxxNamespace":" xxxxxx"," h_xxx_action":" xxxxx" }' -i -u用户名/密码-H"内容类型:application / json" -H"接受:application / json" -X GET

我想下载网页。但是这个命令导致一些html值为o / p,

**HTTP/1.1 200 OK**
Date: Sat, 01 Oct 2016 15:32:19 GMT
Server: Apache/2.2.3 (Red Hat)
Content-ID: -75f83766:15766e71efd:6afa
Set-Cookie: CRN=showWelcomePage%3Dtrue%26automaticPageRefresh%3D30%26displayMode%3Dlist%26useAccessibilityFeatures%3Dfalse%26columnsPerPage%3D3%26linesPerPage%3D15%26timeZoneID%3DWET%26productLocale%3Den%26listViewSeparator%3Dnone%26showOptionSummary%3Dtrue%26showHiddenObjects%3Dfalse%26contentLocale%3Den%26format%3DHTML%26skin%3Dcorporate%26; Domain=.xxx-xx.com; Path=/xx
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html;charset=UTF-8

请帮助我完成命令,我做错了吗? 我也尝试使用-X GET选项,但它返回了相同的o / p。请帮助

0 个答案:

没有答案