Curl wget 会自动解压缩gzip压缩,怎么才可以得到原始文档?
- 0次
- 2021-07-26 02:57:43
- idczone
前端A节点使用Nginx的proxy cache加速后端B节点
A B 都使用了Gzip 所以我想确定没有多次压缩
我怎么不知道curl和wget会自动解压gzip?
curl -H 'Accept-Encoding:gzip' http://somewhere.com/
非常感谢
>curl -H 'Accept-Encoding:gzip' www.domain.com > temp
>gzip -d temp
>cat temp
一次解压后看到全是明文 是不是表示只经过一次压缩了?