title: Show curl redirection but don't follow
body: <p>I have the following code:</p>
  
  <pre><code>$curl = curl_init();
  curl_setopt($curl, CURLOPT_URL, "http://www.site.com/check.php?id=1");
  curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)");
  $curlData = curl_exec($curl);
  curl_close($curl);
  echo $curlData;
  </code></pre>
  
  <p>the script on the remote site will perform a certain check, and according to the check results it redirect to a small 15x15 gif image.</p>
  
  <p>At the moment I have <code>CURLOPT_FOLLOWLOCATION, 1</code> which means it will follow the redirection to the gif and when I echo <code>$curlData</code> I get the binary code of the image which is not what I want.</p>
  
  <p>Is it possible to have curl display where the script tries to redirect me without actually following the redirect? So I can tell to which gif image it redirect me to instead of echoing the gif content?</p>
  
  <p>Thanks,</p>