title: Getting a list of CURLOPT_FOLLOWLOCATION redirect URLs
body: <p>How can I get a list of URLs that CURL follows when loading a page with a CURLOPT_FOLLOWLOCATION set to True?</p>
  
  <p>I know there is a curl_getinfo($ch, CURLINFO_EFFECTIVE_URL) function, but that returns just the last URL.</p>