简体   繁体   中英

How do I handle CAPTCHA challenges from within a Windows application?

I am trying to programmatically fill out HTML forms from within a C#.NET WPF application. I have had great success with this until I came up against a CAPTCHA challenge required on one of the forms. Is there any way to load this CAPTCHA image inside the application for a user to see and respond to? Or can you think of a better way to handle this scenario? An example of such a form is available at: http://www.medwow.com/sale_offer_mgr.php?actions=sale_form&st=1

You can use the URI and loop through the HTML elements. Looking at the Captcha the element looks like this:

The images then will be: 87627... 梅德沃·卡普查

So find the ID "Captcha_image" and then the src, load the source into an image box, similar to whats here: http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/b7336f23-f011-4469-83f0-5e4e62ce97c1/

in 2 steps without code thats it!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM