send aiohttp post request with headers through proxy connection
问题 What I have now (Python 3.4): r = yield from aiohttp.request('post', URL, params=None, data=values, headers=headers) What is in the documentation: conn = aiohttp.ProxyConnector(proxy="http://some.proxy.com") r = await aiohttp.get('http://python.org', connector=conn) So, how should I send a post request with headers through proxy connection with aiohttp? Thanks. 回答1: connector = aiohttp.ProxyConnector(proxy="http://some.proxy.com") session = aiohttp.ClientSession(connector=connector) async