title: How to send Accept Encoding header with curl in PHP
body: <p>How to send Accept Encoding header with with curl in PHP  </p>
  
  <pre><code>  $data=json_encode($data);
  $url = 'url to send';
  $headers = array(
          'Content-Type: application/json'
      );
      $ch = curl_init();
      curl_setopt($ch, CURLOPT_URL, $url);        
      curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); 
      curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
      curl_setopt($ch, CURLOPT_SSLVERSION, 4);
      $datas  = curl_exec($ch);
      curl_close($ch);
  </code></pre>
  
  <p>How to Decompress the response  </p>