Getting Captcha from WebRequest

Krippleintime

Registered Member
Joined
May 12, 2010
Messages
96
Reaction score
13
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!
 
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!

you need to use cookie. Save cookie when you requesting image.
 
Last edited:
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?
 
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.
 
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)
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.
 
Back
Top