我想使用「tornado.httpclient.AsyncHTTPClient」發送一個「POST」請求到「https」網站,但得到:使用「tornado.httpclient」獲取「POST https」網站獲取「HTTPError:HTTP 599」
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()
您的蟒蛇版本'> 2.6'?如果沒有 - 在獲取之前嘗試'client.configure(「tornado.curl_httpclient.CurlAsyncHTTPClient」)''。 – 2013-02-26 12:13:32
添加,但不存在 – sunnyxx 2013-02-26 13:19:41
然後嘗試'客戶端= tornado.httpclient.AsyncHTTPClient(disable_ssl_certificate_validation = TRUE)'.. – 2013-02-27 15:38:39