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

Getting Captcha from WebRequest

Discussion in 'Visual Basic .NET' started by Krippleintime, Jan 19, 2011.

  1. Krippleintime

    Krippleintime Registered Member

    Joined:
    May 12, 2010
    Messages:
    96
    Likes Received:
    13
    Location:
    Graphic Location Unknown
    Hey everyone, I am a little confused as to how I can get a recaptcha image from a site when using a webrequest. I am not sure how it would be the same image as the one I need when submitting the post data, since its new each time you create the request. Thanks!
     
  2. dpalat

    dpalat Regular Member

    Joined:
    Aug 14, 2008
    Messages:
    378
    Likes Received:
    69
    Occupation:
    IM
    Location:
    Kramsterdam
    Home Page:
    you need to use cookie. Save cookie when you requesting image.
     
    Last edited: Jan 19, 2011
  3. Krippleintime

    Krippleintime Registered Member

    Joined:
    May 12, 2010
    Messages:
    96
    Likes Received:
    13
    Location:
    Graphic Location Unknown
    Thanks, so it would be something like connect to webpage, add cookies to cookiecontainer and get captcha answer, then request the page again but setting the cookies to the cookie 's from the first request?
     
  4. smack

    smack Junior Member

    Joined:
    Feb 1, 2010
    Messages:
    182
    Likes Received:
    78
    Occupation:
    Software Engineer/Evil Genius
    Location:
    inside .NET
    no.

    request the page. gather the cookies from the page.

    parse out the image link and make a request to that url using the cookies you captured previously.

    get the image from the raw stream and display it, then type in the answer.

    submit answer along with hash values and cookies to the main site.
     
  5. SEOboss

    SEOboss Junior Member

    Joined:
    Nov 23, 2009
    Messages:
    166
    Likes Received:
    38
    Occupation:
    IM
    Location:
    India
    Hi
    Can u pls provide any example of handling dynamic captcha using your solution
    for example if u check this sites

    W*W dot 101-seo-resources.c*m/submit.php


    your solution wont work, actually on every hit the image gets changed nor you can save it using browser the only way i found is for such sites use screen scraping technique please let us know if u have some other technique



    (means)