Well, I'm trying to submit a form on a website but after submission, the form takes you to a page that redirects to another page after a certain amount of time. Curl catches the redirection page but how do I get it to wait and stay until it redirects to the new page, so I can retrieve the data on that page? Help would be greatly appreciated, thanks!
I think you'd have to do your first curl request (with following off), read the header, get the url from the header, sleep() for however long, then do another request.
u have to put a prefined timout in the curl and after that u can put the regex on the output if the output is not in the normal format expected then the script is timed out and u can take the steps according to that
That's not right, it will be willing to wait however many seconds before timing out, but it will still redirect instantly.