title: Error with file_get_contents()
body: <p>Here I have problem in retrieving data from 3rd party API. I am using file_get_contents() function to fetch data form particular URL using PHP. I got output when pass that URL directly in browser But I am getting error in file_get_contents. I have no idea about it. can anyone help me. ?</p>
  
  <pre><code>  $url= "http://************.com/gds/api/availabilities/134/1594/2016-04-24.json?api_key=1223*****";
  
       //134 -&gt; Origin id
       //1594-&gt; Destination id
       //2016-04-28 -&gt; Date
  
      $opts = array(
      'http'=&gt;array(
      'method'=&gt;"GET",
      'header'=&gt;"Accept-language: en\r\n" .
      "Cookie: foo=bar\r\n"
      ));
  
      $context = stream_context_create($opts);
  
  
      $availabilty = file_get_contents($url, false, $context);
  
      echo "&lt;pre&gt;"; print_r($availabilty); exit;
  </code></pre>
  
  <p>I am getting response like,</p>
  
  <pre><code>{"response":{"code":401,"message":"gzip not passed as header parameters"}}
  </code></pre>
  
  <p>I have tried 'Curl' too. Both producing same result. Thanks in advance.</p>