【发布时间】:2019-12-10 06:45:51
【问题描述】:
有人知道如何解压缩我使用 curl 获得的 gzip 文件的内容吗?
例如:http://torcache.com/torrent/63ABC1435AA5CD48DCD866C6F7D5E80766034391.torrent
回复
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 09 Jun 2010 01:11:26 GMT
Content-Type: application/x-bittorrent
Content-Length: 52712
Last-Modified: Tue, 08 Jun 2010 15:09:58 GMT
Connection: keep-alive
Expires: Fri, 09 Jul 2010 01:11:26 GMT
Cache-Control: max-age=2592000
Content-Encoding: gzip
Accept-Ranges: bytes
然后是压缩的gzip,
我试过gzdecode但是不行,gzeflate也一样,他们根本没有得到任何响应,文件的内容不超过2k
【问题讨论】: