Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
June 1, 2005, 7:31 pm
rate this thread
Hi. I'm trying to use cURL to output the redirect of the site
which redirects to
But it does not work... What am I doing wrong?
I want to know what the redirect url is and then output it on a page.
Here is my code.
// create a new CURL resource
$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://www.disney.com ");
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
// grab URL and pass it to the browser
// close CURL resource, and free up system resources
Re: Use curl to find redirect url of http://www.disney.com
If you dump out the contents of the original URL, you can see it uses
<http://www.andyhsoftware.co.uk/space Space: disk usage analysis tool