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? Link to comment https://forums.phpfreaks.com/topic/156108-curl-problem-302-the-document-has-moved-here/ 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 Link to comment https://forums.phpfreaks.com/topic/156108-curl-problem-302-the-document-has-moved-here/#findComment-821755 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.