title: Why CURLINFO_EFFECTIVE_URL is not working on the link?
body: <p><code>CURLINFO_EFFECTIVE_URL</code> is refusing to work on <a href="http://www.smashingmagazine.com/2009/01/28/colors-in-corporate-branding-and-design/" rel="nofollow">this</a> URL.</p>
  
  <p>The result is exactly the same as the original URL, but if you follow the URL in your browser, it clearly redirects. </p>
  
  <p>What is going on here?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>$ch = curl_init($url);
  curl_setopt($ch, CURLOPT_HEADER, false);
  curl_setopt($ch, CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0); 
  curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  curl_exec($ch);
  
  $redirectURL = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
  echo $redirectURL;
  
  curl_close($ch);
  </code></pre>