1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do you grap a captcha using Httpwebrequest? Is that even possible?

Discussion in 'General Programming Chat' started by simpleonline1234, Oct 24, 2011.

  1. simpleonline1234

    simpleonline1234 Junior Member

    Joined:
    Jan 26, 2010
    Messages:
    169
    Likes Received:
    13
    Was wondering how you can dowload a captcha into a picture box using the httpwebrequest method?

    I have my bot up and running and I can download captcha's off the site and into a picture fine using the web browser control but damn that's so slow so I am going to try registering accounts using httpwebrequest instead.

    Can Httpwebrequest download images like captcha's or will it HAVE to be done using a web browser control?

    Was thinking about creating a plug-in for a decaptcha service but I'm a cheap skate so for now I will be solving them manually until I have my OCR class built.

    But any ideas on the method for downloading a captcha to a picture box on a form?

    Thanks
     
  2. healzer

    healzer Jr. Executive VIP Jr. VIP Premium Member

    Joined:
    Jun 26, 2011
    Messages:
    2,366
    Likes Received:
    1,967
    Gender:
    Male
    Occupation:
    Marketing automation tools
    Location:
    Somewhere in Europe
    Home Page:
    It is possible, but very hard to find on google... but you CAN find it... I did :)
     
  3. plumbum416

    plumbum416 Registered Member

    Joined:
    Mar 17, 2011
    Messages:
    93
    Likes Received:
    16
    I recommend you to gain some knowledge about http requests (If you do not already have) and then download Wireshark. With wireshark you can monitor your traffic and look into the packages, than you can simulate the exact same requests.
     
  4. kirkonpolttaja

    kirkonpolttaja Senior Member

    Joined:
    Feb 6, 2010
    Messages:
    1,027
    Likes Received:
    669
    Captcha sniper catches captchas and solves them by intercepting ports and http requests that decaptcher.com uses and solves captchas for free with inbuilt OCR.
     
  5. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,154
    Which one request you get the page source. Parse the code to locate the link to the captcha image. Make a request to fetch the image. Solve it. Submit solution.

    For the above to work you need to have a mechanism to store and use cookies (or the captcha validation will always fail)