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

解决办法:
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/"

你可能感兴趣的:(2018-09-28 curl请求返回乱码怎么办 "Accept-Encoding:gzip")