描述你的问题
我在torando服务端需要使用tornado.httpclient.AsyncHTTPClient通过代理请求一个http服务,但是抛出了NotImplementedError: proxy_host not supported 的错误。
请问有什么好的解决方案吗?难道tornado的异步请求httpclient不支持代理?
贴上相关代码
@asynchronous
@gen.coroutine
def 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()贴上报错信息
NotImplementedError: proxy_host not supported
贴上相关截图
已经尝试过哪些方法仍然没解决(附上相关链接)