我想使用“tornado.httpclient.AsyncHTTPClient”向“https”网站发送“POST”请求,但得到:
HTTPError: HTTP 599: [Errno 1] _ssl.c:503: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
当我使用“urllib”代替(具有相同的 url 和参数,我不知道的标头)
代码时,它可以工作,如下所示:
url = r'https://**********.com/****/'
request = tornado.httpclient.HTTPRequest(url = url, method = 'POST', body = body, headers = headers)
client = tornado.httpclient.AsyncHTTPClient()
client.fetch(request, callback = on_reqeust)
tornado.ioloop.IOLoop.instance().start()