0

为什么这个 curl 命令在 CMD 中不起作用。它应该下载一个带有标题的 html 页面,但它看起来像是收到了一些二进制数据..

curl -o tested.htm -H "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100214 Ubuntu/9.10 (karmic) Firefox/3.5.8" ^
-H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" ^
-H "Accept-Language: en-us,en;q=0.5" ^
-H "Accept-Encoding: gzip,deflate" ^
-H "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" ^
-H "Keep-Alive: 300" ^
-H "Connection: keep-alive" http://request.urih.com/
4

1 回答 1

1
-H "Accept-Encoding: gzip,deflate" ^

不应该存在 html 页面

于 2012-06-14T09:32:07.597 回答