Hi,

I am facing some issues getting some data from a webservice using CURL.


Deatils:
1. I am using Zend HTTP Client with CURL Adapter.
2. Webservice is on SSL.
3. Header:
[Cache-control] => no-store, no-cache, must-revalidate, post-check=0, pre-check=0
[Pragma] => no-cache
[Vary] => Accept-Encoding
[Content-encoding] => gzip
[X-frame-options] => sameorigin
[Content-length]


Issue : The body (response) contains junk characters/encoded/encrypted chars(not sure about this).
eg: ��Xm0��8�.....

Code:
$client = new Zend_Http_Client($url);
$client -> setAdapter("Zend_Http_Client_Adapter_Curl");
$config = array(
'CURLOPT_COOKIESESSION'=>'1',
'CURLOPT_COOKIEFILE'=>$cookieFile,
'CURLOPT_TIMEOUT'=>'30',
'CURLOPT_HEADER' => 1,
'CURLOPT_ENCODING'=>1,
'CURLOPT_SSL_VERIFYPEER'=>0,
'CURLOPT_SSL_VERIFYHOST'=>2,
'CURLOPT_SSLCERT'=>APPLICATION_PATH."/includes/localhost.crt");

Please check and let me know why I am getting the Junk Chars.. Thanks.