title: Curl redirect,, not working?
body: <p>I'm using the following code:</p>
  
  <pre><code>$agent= 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9) Gecko/2008052906 Firefox/3.0';
  
  $ch = curl_init();
  
  curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  
  curl_setopt($ch, CURLOPT_URL, "www.example.com");
  
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  
  curl_setopt($ch, CURLOPT_HEADER, 0);
  
  $output = curl_exec($ch);
  
  echo $output;
  </code></pre>
  
  <p>But it redirects to like this:</p>
  
  <pre><code>http://localhost/aide.do?sht=_aide_cookies_
  </code></pre>
  
  <p>Instead of to the URL page.</p>
  
  <p>Can anyone help me solve my problem, please?</p>