Large HTTPS downloads and uploads from HTTP/2 clients are fast and reliable on every ProxyMesh proxy server. If your scraper, crawler, or browser talks HTTP/2 to the sites it visits through ProxyMesh, there is nothing to change in your configuration or your account.
Try it with curl
These two examples show how to ask for HTTP/2. They're just examples: any HTTP/2 client or library works the same way through the proxy. Give it your ProxyMesh proxy URL and make HTTPS requests as usual.
curl --http2 -x http://USERNAME:PASSWORD@PROXY_HOST:PORT \
-s -o /dev/null -w '%{http_version}\n' https://www.example.com/
This prints 2 when the site agrees to HTTP/2.
The same request with httpx
httpx needs the HTTP/2 extra (pip install "httpx[http2]") and http2=True
on the client. The proxy URL goes in proxy, as with any other request.
import httpx
proxy = "http://USERNAME:PASSWORD@PROXY_HOST:PORT"
with httpx.Client(http2=True, proxy=proxy) as client:
response = client.get("https://www.example.com/")
print(response.http_version)
This prints HTTP/2 when the site agrees to HTTP/2.
For more documentation, see cURL configuration for the proxy and Proxy server requests over HTTPS.