【发布时间】:2019-09-25 16:45:22
【问题描述】:
当我尝试通过 HTTPS 代理发出请求时-
async with session.get(
url
headers={"k": v},
proxy='https://my-proxy.com:1234',
) as response:
resp_json = await response.json()
我的请求失败,出现以下异常:
raise ValueError("Only http proxies are supported")
这对应于source code。
不过,the docs 表示支持 HTTPS 代理。
这是文档中的疏忽还是我做错了?
【问题讨论】:
标签: python https proxy http-proxy aiohttp