title: file_get_contents redirecting to 302
body: <p>I am trying to access the exrernal url using file_get_contents. And I am getting 
  302 moved as the response.
  It was working fine in my localhost.  </p>
  
  <pre><code> $to_currency= 'GBP';
   $from_currency = 'USD';
   $amount= 100;
   $urlarg = "hl=en&amp;q=$amount$from_currency%3D%3F$to_currency";
   file_get_contents("http://google.com/ig/calculator?".$urlarg);
  </code></pre>
  
  <p>How to resolve this issue?</p>