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? 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? 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. 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 Link to comment https://forums.phpfreaks.com/topic/205549-curl-stopping-redirects/#findComment-1075598 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.