How to file_get_contents a gzip page ? |
[eluser]pistolPete[/eluser]
This problem is described here plus a workaround is suggested: http://bugs.php.net/bug.php?id=22967 But there are other possibilities: Try to send a HTTP request without Code: Accept-Encoding: gzip Alternatively you could use cURL: Code: curl_setopt($handle,CURLOPT_ENCODING , 'gzip'); Or use one of the user contributed gzdecode() functions here: http://php.net/gzencode |
Messages In This Thread |
How to file_get_contents a gzip page ? - by El Forum - 02-24-2009, 05:06 AM
How to file_get_contents a gzip page ? - by El Forum - 02-24-2009, 05:23 AM
How to file_get_contents a gzip page ? - by El Forum - 02-24-2009, 05:27 AM
How to file_get_contents a gzip page ? - by El Forum - 02-24-2009, 06:21 AM
How to file_get_contents a gzip page ? - by El Forum - 02-24-2009, 06:30 AM
How to file_get_contents a gzip page ? - by El Forum - 03-08-2010, 01:44 AM
|