描述你的問題我在torando服務(wù)端需要使用tornado.httpclient.AsyncHTTPClient通過代理請(qǐng)求一個(gè)http服務(wù),但是拋出了NotImplementedError: proxy_host not supported 的錯(cuò)誤。請(qǐng)問有什么好的解決方案嗎?難道tornado的異步請(qǐng)求httpclient不支持代理?貼上相關(guān)代碼@asynchronous@gen.coroutinedef get(self): req = tornado.httpclient.HTTPRequest('http://****',
proxy_host='Proxy_IP_Address', proxy_port=8888)
response = yield AsyncHTTPClient().fetch(req)
result=response.body
self.write(str(result))
self.finish()貼上報(bào)錯(cuò)信息NotImplementedError: proxy_host not supported貼上相關(guān)截圖已經(jīng)嘗試過哪些方法仍然沒解決(附上相關(guān)鏈接)
- 2 回答
- 0 關(guān)注
- 1744 瀏覽
添加回答
舉報(bào)
0/150
提交
取消
