Page 1 of 1

UnGzip Http Stream, how ?

Posted: Sat Jul 08, 2006 8:10 am
by dopy
Hello,

My PHP script sends headers to another PHP script, and I receive answer from server. It works well, but server sends to my script answer which is gziped.

First question: How could I unzip this gziped answer?
Second question: Could I IMPEL server to send me unziped answers?

Thanks for all, ByE

Posted: Wed Jul 12, 2006 12:20 am
by Benjamin
Maybe

Code: Select all

gzuncompress();
Will help you..

http://www.php.net/manual/en/function.gzuncompress.php