验证码使用WPF中的应用 [英] Use reCaptcha in WPF App

查看:232
本文介绍了验证码使用WPF中的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找解决方案如何与reCAPTCHA的整合WPF桌面应用程序!任何人都知道该如何解决?

I'm looking for solution how to integrate WPF desktop application with reCaptcha! Anyone knows the solution?

我正在注册模块上我的应用程序,并且需要良好的和简单的验证码。

I'm working on registration module to my application, and need good and simple captcha.

谢谢!

推荐答案

请参阅的 https://developers.google.com/recaptcha/docs/display https://开头开发商.google.com /验证码/文档/验证

您可以做出的http://www.google.com/recaptcha/api/challenge?k=your_public_key 并解析ChallengeValue。此值可通过 http://www.google.com/recaptcha/api用于获取的ReCaptcha图像/图像?c = challenge_value 。 AFAIK URL可以将图像显示在WPF直接。

You could make an request to http://www.google.com/recaptcha/api/challenge?k=your_public_key and parse the ChallengeValue. This value can be used to get the recaptcha image via http://www.google.com/recaptcha/api/image?c=challenge_value. Afaik URL Images can be displayed in WPF directly.

让用户输入到一个文本框(或类似)的控制。

Let the user input into a TextBox (or similar) control.

有关验证,使用该输入,并请求 http://www.google.com/recaptcha/api/验证(见上文档)。

For verification, use this input and make a request to http://www.google.com/recaptcha/api/verify (see documentation above).

这篇关于验证码使用WPF中的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆