2018-09-28 curl请求返回乱码怎么办 "Accept-Encoding:gzip"

2018-09-30 10:18:09 浏览数 (1)

解决办法: https://stackoverflow.com/questions/8364640/how-to-properly-handle-a-gzipped-page-when-using-curl

curl -X GET -H "Host:www.baidu.com" -H "Connection:Keep-Alive" -H "Accept-Encoding:gzip" -H "User-Agent:okhttp/3.8.1" "http://www.baidu.com/"

curl --compressed -X GET -H "Host:www.baidu.com" -H "Connection:Keep-Alive" -H "Accept-Encoding:gzip" -H "User-Agent:okhttp/3.8.1" "http://www.baidu.com/"

0 人点赞