title: While saving mp3 files from Google TTS generates mp3 file having 302 redirection
body: <p>While saving mp3 files from Google TTS, it generates mp3 file having 302 redirection.</p>
  
  <p>My Code is :</p>
  
  <pre class="lang-php prettyprint-override"><code>$text = "This is sameer kalia.";
  $text = urlencode($text);
  $url = "http://translate.google.com/translate_tts?tl=en&amp;q=$text";
  $file = "curl.mp3";
  $ch = curl_init();  
  curl_setopt($ch,CURLOPT_URL,$url);
  curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
  $output=curl_exec($ch); 
  curl_close($ch);
  
  $fp= fopen($file,"wb");
  fwrite($fp,$output);
  fclose($fp);
  </code></pre>
  
  <p>and it generates file "curl.mp3" having following code in side this file :</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;HTML&gt;&lt;HEAD&gt;&lt;meta http-equiv="content-type" content="text/html;charset=utf-8"&gt;
  &lt;TITLE&gt;302 Moved&lt;/TITLE&gt;&lt;/HEAD&gt;&lt;BODY&gt;
  &lt;H1&gt;302 Moved&lt;/H1&gt;
  The document has moved
  &lt;A HREF="http://ipv4.google.com/sorry/IndexRedirect?continue=http://translate.google.com/translate_tts%3Ftl%3Den%26q%3DThis%2Bis%2Bsameer%2Bkalia.&amp;amp;q=CGMSBHnxe0oY_KD7rgUiGQDxp4NLy6TiN5I9UQ6rQvnQPe4DphVlkfY"&gt;here&lt;/A&gt;.
  &lt;/BODY&gt;&lt;/HTML&gt;
  </code></pre>