|
-
Jul 7th, 2009, 03:23 PM
#1
Thread Starter
Lively Member
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
-
Jul 7th, 2009, 09:18 PM
#2
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.
-
Jul 8th, 2009, 08:49 AM
#3
Thread Starter
Lively Member
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
-
Jul 8th, 2009, 08:31 PM
#4
Re: Get captcha back to user then submits it
 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/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|