By Lin Jian

An HTTP proxy receives requests from a client and forwards them according to its configuration. The proxy you configure in a browser, command-line tool, or collection program is normally a forward proxy: the client chooses the destination and asks the proxy to communicate with it.

I find it useful to separate two request paths. They may use the same proxy endpoint, but the proxy handles them differently.

Ordinary HTTP forwarding

For an unencrypted HTTP destination, the client supplies the destination to the proxy. The proxy can interpret the request and apply supported access rules. It may also cache eligible responses if caching is configured.

The destination URL, proxy endpoint, and proxy credentials have separate roles. One identifies the resource, another identifies the intermediary, and the credentials establish permission to use that intermediary. Website authentication remains a separate requirement.

A reverse proxy has a different role: it accepts incoming traffic for a website and routes it to backend services. A website's reverse-proxy configuration is not automatically a general-purpose forward proxy.

CONNECT: establish the tunnel before exchanging encrypted data

For an HTTPS destination, a client can ask an HTTP proxy that supports and permits CONNECT to establish a tunnel:

CONNECT example.com:443 HTTP/1.1
Host: example.com:443

After successful establishment, the proxy forwards traffic through the tunnel. The client then performs its TLS handshake with the destination. CONNECT requests a communication path; it is not itself an encryption algorithm.

The CONNECT target contains the destination host and port, rather than the page path. In ordinary tunneling without TLS interception, the proxy cannot directly read encrypted HTTPS bodies. It can still observe connection metadata such as the target host, timing, and traffic volume. A separately configured TLS-interception deployment has different certificate and trust requirements.

See the MDN CONNECT reference for the method's behavior and target-port considerations.

Two different meanings of HTTPS

The scheme in https://example.com/ describes the destination connection. The scheme in https://proxy.example:port describes transport from the client to the proxy, which both components must support.

An HTTP proxy can carry an HTTPS destination through CONNECT without the proxy endpoint itself using TLS. If Basic proxy authentication travels over an unencrypted HTTP connection, the confidentiality of those authentication details must be considered separately. An encrypted destination URL does not protect every preceding exchange.

Ask about destination protocols, proxy transport, authentication, and client support separately. The Python HTTP proxy configuration guide applies this distinction to client settings.

What an HTTP proxy can help with

For authorized web collection, a proxy can provide a centrally managed access configuration. For an interface that requires an approved source address, a verified fixed-exit deployment can provide that source. For regional checks, an exit location can be one test condition alongside language, cookies, and delivery settings.

A controlled deployment may also apply destination and port rules or retain necessary connection records. Logs, caching, authentication groups, and other features depend on the actual implementation and settings. Squid access controls are one implementation example, not a definition of every HTTP proxy.

The proxy does not automatically parse pages, obtain website permissions, or deduplicate records. Special protocols and long-lived connections need implementation-specific checks. Do not infer universal support or rejection from the label alone.

Evaluate a concrete connection

Item Why it matters
Client proxy support The application must actually use the configured proxy
Transport and authentication These determine connection settings and credential protection
Allowed targets and ports CONNECT may be restricted to an approved set
Exit behavior Fixed exits, rotation, and sessions depend on the service
Resource type and lifetime Residential, datacenter, and short-lived are not protocol definitions
Error and log visibility These help identify the failed stage

A constant gateway is not proof of a constant exit. The tunnel and session guide explains that distinction.

Start with one minimal request. Confirm that the proxy accepts the connection, then verify the destination response before adding application complexity. Finally, check whether the resulting data meets the task's requirements, as described in the accepted-record guide.

Frequently asked questions

Does a successful CONNECT prove that the page was collected?

No. It establishes a tunnel. TLS, the destination HTTP response, and application content checks still follow.

Must an HTTP proxy listen on port 80?

No. Use the assigned or configured proxy port. That port is also separate from the destination port.

Does tunneling hide every client detail?

No. Applications still send information to destinations, and intermediaries can observe some metadata. Tunneling is not a complete-anonymity guarantee.

Can an HTTP-proxy client use a SOCKS5 endpoint unchanged?

Only if the client separately supports SOCKS5 and is configured for it. The protocol names are not interchangeable.

About the author

Lin Jian writes about proxy integration, protocols, authentication, and troubleshooting.

Areas of focus: HTTP, HTTPS, and SOCKS5; proxy authentication; client configuration; timeout and connection diagnosis.