2009-10-24 5 views

답변

2

시도 :

<?php 
$ch = curl_init("http://www.example.com/"); 
// supported encodings: "identity", "deflate", and "gzip" 
// or empty string, "", sending all supported encoding types 
curl_setopt($ch, CURLOPT_ENCODING, ""); 

curl_exec($ch); 
curl_close($ch); 

이이 Accept-Encoding 헤더를 자동으로 보내고 응답을 디코딩한다.

관련 문제