What is the best method to find where a URL redirects to?
If using cURL CURLOPT_FOLLOWLOCATION will follow every header. What I am looking to do is just find the next location?
My first idea was to use cURL but disable FOLLOWLOCATION and then parse the result for Location: XXXX but I was thinking there must be a more efficient way.