How the tunnel works
The client sends CONNECT example.com:443 to the proxy, with Proxy-Authorization if credentials are used. The proxy opens a TCP connection to the target and answers 200. From then on it only relays bytes, and the client performs the TLS handshake with the target.
- The proxy sees: target host, port, connection timing and byte counts.
- The proxy does not see: URL paths, headers, cookies or page content.
- The target sees: the proxy exit IP, not yours.
How to check it
Run curl -v -x http://user:pass@host:port https://example.com and look for the CONNECT line and the TLS handshake with the target. Then open an IP lookup page through the proxy to confirm the exit IP and country.