Does anyone know how to uncompress the contents of a gzip file that i got with curl?
for example: http://torcache.com/torrent/63ABC1435AA5CD48DCD866C6F7D5E8076603439
Have you tried gzuncompress or gzinflate?
gzdeflate
compresses, the opposite of what you want. To be honest, I can't figure out how gzdecode
differs from normal uncompressing.
There's also the cURL option CURLOPT_ENCODING:
The contents of the "Accept-Encoding: " header. This enables decoding of the response. Supported encodings are "identity", "deflate", and "gzip". If an empty string, "", is set, a header containing all supported encoding types is sent.
It seems to mean it'll automatically decompress the response, but I haven't tested that.