shadiadiph Posted April 29, 2009 Share Posted April 29, 2009 the problem is this my curl works up to a cretain point then it stops on a page saying error 302 the document has moved here if i click on the link provided i am logged in directly to the site if i try to curl the link and follow further i get session has expired one error i can see in the head which is where i think the problem is is Content-Type: text/html X-Cache: MISS from joew Connection: close everything else seems fine this is driving me nuts has anyone had a problem like this before? Quote Link to comment Share on other sites More sharing options...
cringe Posted April 29, 2009 Share Posted April 29, 2009 Try adding this to your options array: CURLOPT_FOLLOWLOCATION => TRUE, // follow redirects CURLOPT_MAXREDIRS => 10, // stop after 10 redirects Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.