Issue
I'm using curl to fill a form. After completion of the post the other script which handles the form is redirecting to another URL. I want to get this redirect URL into a variable.
Solution
You would use
curl_setopt($CURL, CURLOPT_HEADER, TRUE);
And parse the headers for the location
header
Answered By - RobertPitt Answer Checked By - David Goodson (WPSolving Volunteer)