I\'m trying to make curl follow a redirect but I can\'t quite get it to work right. I have a string that I want to send as a GET param to a server and get the resulting URL.
You can use:
$redirectURL = curl_getinfo($ch,CURLINFO_REDIRECT_URL);