How to file_get_contents a gzip page ? |
[eluser]Benjamin David[/eluser]
Hi ! I'm trying to get the content of a page that has gzip header compression. When I file_get_contents the page, the result is compressed and I can't find a way to get the original content, uncompressed. I've tried the gzdeflate and gzuncompress php 5 function and it didn't work. I haven't tried the gzdecode function as it comes with PHP 6 and my host hasn't it yet. The page I'm trying to get content from is there : http://ax.phobos.apple.com.edgesuite.net...on&limit=1 And it's killing me because I can make it work in Javascript with Ajax requests because the browser automaticaly uncompresses the whole thing but not with PHP... Too bad ! Thanks for helping ! |
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
|