Get captcha back to user then submits it
Hello all
I wonder if we use Curl to submit a form however there is a captcha that exists in that form, Can we get the capatcha back to user so he can write it manually then post it back to the form and submits it?
I remember that rapidleech script was doing something like this.
I will be glad if someone answers
Thanks in advance
Adel
Re: Get captcha back to user then submits it
Yes. Make sure you use the same cURL handle to GET the form (with the CAPTCHA image) as well as POST it, so that the requests are associated with the same server-side session.
Re: Get captcha back to user then submits it
Thanks for your response.. That's also what thought that i have to keep it in the same session.. however.. how will i display the image to the user without breaking the session?
I mean i will have a cURL handle to get the image.. then display it to the user.. then post the data the user entered into the form. will it be the same session if i just use the same cURL handle?
Can you post and example code if you please?
Thanks in advance
Adel
Re: Get captcha back to user then submits it
Quote:
Originally Posted by
lordadel
I mean i will have a cURL handle to get the image.. then display it to the user.. then post the data the user entered into the form. will it be the same session if i just use the same cURL handle?
Yes. There are some options you will need to set regarding cookies (assuming the site uses cookie-based sessions). Here an example:
http://coderscult.com/php/php-curl/2...okies-example/