Jump to content

Recommended Posts

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.