Knowledgebase
Reply is crypted
Posted by Axel Girgensohn on 31 July 2012 06:57 AM

I have used below code for country 208 and i am getting attached response. :
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

$url="https://safe.novasol.com/api/products?&country=208";
$headers = array(
"GET /api/translation HTTP/1.1",
"Content-type: text/xml;charset=\"utf-8\"",
"Key: [your key]",
"Accept-encoding: gzip"
);
$ch = curl_init ();
curl_setopt ( $ch, CURLOPT_URL, $url );
curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, 0 );
curl_setopt ( $ch, CURLOPT_HTTPHEADER, $headers);
echo $response = curl_exec ( $ch );
$ch_info=curl_getinfo($ch);
curl_close($ch);

I am not getting correct response

���r�G�-z��B1�gS�Y�=�
�i$���'��t��g�"D�"gk��;� ���{��ɬ�&lt;�OdU�`|rO��H
)W���g�Z����q��n�/�f7��Ox��d�y7������ˏ��3�ӿ~�?��i&gt;��}�y���x�����կnn?�
���"�wz��e�ܻ������⟞~�E��d&gt;Ldӟ��[}��v�?&amp;�����^̇���
��{��t�n������'���j8�


Solution

Delete the "Accept-encoding: gzip" from the header. If this does not help please create a ticket.

(2 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).