Jenski Posted August 14, 2008 Share Posted August 14, 2008 I want to do this: - retrieve a page - grab a value from that page - post that value in that page basically i want to grab a page that has a field in a form that is randomly generated each time the page is loaded. I want to be able to grab that value and use it in the posting. However, at the moment I have to do it in 2 curl calls - one to grab the value from scraping a page - one to make the post which means by the time i make the post the value that grabbed first time is regenerated. Any ideas how I can get around this? Hope that makes sense. Jen Link to comment https://forums.phpfreaks.com/topic/119631-curl/ Share on other sites More sharing options...
ratcateme Posted August 14, 2008 Share Posted August 14, 2008 so you want to get a value using cURL then use it in the same transfer? that looks imposable to me Scott. Link to comment https://forums.phpfreaks.com/topic/119631-curl/#findComment-616329 Share on other sites More sharing options...
Jenski Posted August 14, 2008 Author Share Posted August 14, 2008 Yeah, is there another way i can use instead of curl? or use curl with something else to make this work? Link to comment https://forums.phpfreaks.com/topic/119631-curl/#findComment-616334 Share on other sites More sharing options...
Jenski Posted August 14, 2008 Author Share Posted August 14, 2008 Would this do it? http://uk.php.net/manual/en/function.curl-multi-exec.php Link to comment https://forums.phpfreaks.com/topic/119631-curl/#findComment-616358 Share on other sites More sharing options...
JonnoTheDev Posted August 14, 2008 Share Posted August 14, 2008 Your not trying to break CAPTCHAS are you? Nice Link to comment https://forums.phpfreaks.com/topic/119631-curl/#findComment-616364 Share on other sites More sharing options...
Jenski Posted August 14, 2008 Author Share Posted August 14, 2008 No, just trying to create an automatic login for a forum on our intranet Link to comment https://forums.phpfreaks.com/topic/119631-curl/#findComment-616366 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.