Blog Project Source: Https://github.com/JmilkFan/JmilkFan-s-Blog Directory
Table of Contents list reCAPTCHA application reCAPTCHA
List of the preceding text
Use flask to write a light blog (1)-Create a project Write a light blog with flask
1. Modify the two methods in the recaptchalib.php
Copy the Code code as follows:
function _recaptcha_http_post ($host, $path, $data, $port = 80) {$req = _recaptcha_qsencode ($data);$response = ";$url = $host. $path;$post _data = $req;$ch =
Php space does not support socket but curl recaptcha usage. For more information, see.
Php space does not support socket but curl recaptcha usage. For more information, see.
1. Modify the two methods in recaptchalib. php
The Code is as follows:
Php space does not support socket but curl recaptcha usage. For more information, see. 1. modify the two methods in recaptchalib. php
The code is as follows:
Function _ recaptcha_http_post ($ host, $ path, $ data, $ port = 80 ){$ Req = _
Php space does not support socket but curl recaptcha usage. For more information, see. 1. modify the two methods in recaptchalib. php
The code is as follows:
Function _ recaptcha_http_post ($ host, $ path, $ data, $ port = 80 ){$ Req = _
Copy CodeThe code is as follows:
From urllib.request import Urlopen
From Urllib.parse import UrlEncode
Import Tornado.httpserver
Import Tornado.ioloop
Import Tornado.web
#获取key: Https://www.google.com/recaptcha/whyrecaptcha
PublicKey = ' Fill in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.