Skip to content

HTTP, HTTPS, and SOCKS5 protocols

The gateway protocol controls how the client connects to ProxyRequest. It does not have to match the destination URL scheme.

Client capabilityUseDNS behavior
HTTP proxy supporthttp:// proxy URLClient and proxy behavior depend on the request type
HTTPS destination through HTTP proxyhttp:// proxy URL + CONNECTTunnel carries the encrypted destination connection
SOCKS with local DNSsocks5://Client commonly resolves the hostname locally
SOCKS with proxy-side DNSsocks5h://Hostname is sent through the proxy path
Terminal window
curl --proxy \
http://USERNAME:[email protected]:8000 \
http://example.com/

For an HTTPS destination, the client normally sends CONNECT destination:443 to the HTTP proxy. The proxy establishes the route, then the client performs TLS directly through the tunnel. Do not change the proxy scheme to https:// unless the assigned gateway explicitly supports TLS on the proxy connection itself.

  1. TCP layer: verify gateway host, port, egress firewall, and DNS resolution.
  2. Proxy layer: verify protocol, username, password, and active order.
  3. Targeting layer: remove optional constraints to test inventory availability.
  4. Destination layer: compare multiple targets and inspect the verbose client trace.
  5. Application layer: confirm the library is using the proxy for every redirect and subrequest.

For a consolidated diagnostic checklist, see common errors.