N-Bomb(Nerd) Posted June 22, 2010 Share Posted June 22, 2010 I'm using curl to perform an action on a site. The results of the action are only displayed on the page for 3 seconds before the website uses a meta redirect. Curl is grabbing the page after the redirect.. I need the page before it redirects. Is there a way to stop curl from taking meta redirects? Quote Link to comment https://forums.phpfreaks.com/topic/205549-curl-stopping-redirects/ Share on other sites More sharing options...
N-Bomb(Nerd) Posted June 22, 2010 Author Share Posted June 22, 2010 Is this even possible? Quote Link to comment https://forums.phpfreaks.com/topic/205549-curl-stopping-redirects/#findComment-1075558 Share on other sites More sharing options...
N-Bomb(Nerd) Posted June 22, 2010 Author Share Posted June 22, 2010 I've tried googling this, however I keep coming up with results that talk about an infinite redirect loop -- which isn't my problem. Quote Link to comment https://forums.phpfreaks.com/topic/205549-curl-stopping-redirects/#findComment-1075583 Share on other sites More sharing options...
premiso Posted June 22, 2010 Share Posted June 22, 2010 Look into the curl_setopt function, particularly: CURLOPT_FOLLOWLOCATION Quote Link to comment https://forums.phpfreaks.com/topic/205549-curl-stopping-redirects/#findComment-1075598 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.