i need content of various web pages. of them compressed using different methods (gzip, deflate, etc). i've searched on internet , found solution gzipped content:
$ch = curl_init("http://games2k.net/"); curl_setopt($ch,curlopt_encoding , "gzip"); curl_setopt($ch, curlopt_returntransfer, 1); $output = curl_exec($ch); curl_close($ch); echo $output; however, works single method. need solution works many compression methods possible (preferably of them) or @ least popular 2 gzip , deflate.
thanks help!
did try
$ch = curl_init("http://games2k.net/"); curl_setopt($ch,curlopt_encoding , ""); curl_setopt($ch, curlopt_returntransfer, 1); $output = curl_exec($ch); curl_close($ch); echo $output; keep quotes empty
Comments
Post a Comment