dsaba Posted May 9, 2007 Share Posted May 9, 2007 Hello i'm trying to post to a form that requires the user to type in a image verification ocde i'm doing this with cURL library and functions available in php, i've seen a program written in c# do what i'm trying to do successfully, so this CAN be done, I just need the proper algorithim the way it works with curl is that everytime you curl_exec(); it will load that page First i want to load the html form get the contents, then send back only the image for image verification back to my script, so I can then type it in and then submit the form with the image verification code the problem is now when i load the page again with curl to submit or POST the data to the form, it will cause the html form to be loaded again, hence generating a new image verification code, so the old code i'm posting in is no good I need some kind of algorithim to do this correctly 1. its either i save the image in curl's cache if it can do this, so next time i load the page it will not cause it to load another image 2. or I somehow keep the handle or connection open until I post teh image verification code, I don't know if this can be done I'd appreciate any insight on this, as I said before it can be done, i've seen it done unfortunately the programmer who made the program does not want to share the source code -thank you Link to comment https://forums.phpfreaks.com/topic/50710-posting-image-verification-with-curl-library-in-php/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.