Uncompress a gzip file from CURL, on php

后端 未结 7 1248
一个人的身影
一个人的身影 2020-12-01 15:58

Does anyone know how to uncompress the contents of a gzip file that i got with curl?

for example: http://torcache.com/torrent/63ABC1435AA5CD48DCD866C6F7D5E8076603439

7条回答
  •  一个人的身影
    2020-12-01 16:27

    Have you tried setting the header stating that you accept gzip encoding as follows?:

    curl_setopt($rCurl, CURLOPT_HTTPHEADER, array('Accept-Encoding: gzip,deflate'));
    

提交回复
热议问题