Page 1 of 1

cURL again

Posted: Tue Oct 18, 2005 11:32 am
by shiznatix

Code: Select all

$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable
$incoming = curl_exec ($ch);
is timing out after 90 seconds, but if i echo out the url and goto the site it redirects one time then goes to the website. what am i missing?

Posted: Tue Oct 18, 2005 8:27 pm
by feyd
you sure it uses a header redirection?

Posted: Wed Oct 19, 2005 2:57 am
by shiznatix
never mind i fixed it. it redirected like 5 times and was having some troubles