Results 1 to 4 of 4

Thread: Get captcha back to user then submits it

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2007
    Posts
    111

    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

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    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.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2007
    Posts
    111

    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

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Get captcha back to user then submits it

    Quote Originally Posted by lordadel View Post
    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
  •  



Click Here to Expand Forum to Full Width