I cant seem to find a way to send http connect 1.1 using python requests with proxy. it sends 1.0 and I dont want my infra to be able to accept http 1.0 connections.
proxy = { 'https': f'http://{xyz}:10000' }
requests.get(
f'https://{url}/health',
timeout = 10,
proxies = proxy
)
this results in something like: HTTP/1.1 426 Upgrade Required
using curl as a workaround for now
edit: python 3.10.9, requests==2.26.0
edit: found this line: https://github.com/python/cpython/blob/940763140f7519a125229782ca7a095af01edda4/Lib/http/client.py#L907
so its literally hardcoded to 1.0
for tunneling scenarios?