Overview
TheX-Exit-IP
header is automatically included in the HTTP 200 OK response to CONNECT requests, providing visibility into which exit IP will be used for tunneled connections (HTTPS traffic).
HTTP vs HTTPS Proxy Behavior
Plain HTTP Traffic
For plain HTTP requests, the proxy directly forwards your request to the target server and returns the response. No CONNECT request is used, and therefore noX-Exit-IP
header is available.
HTTPS Traffic (with CONNECT)
For HTTPS traffic, a tunnel must be established first:- Your client sends a CONNECT request to the proxy asking to establish a tunnel to the target server
- The proxy responds with HTTP 200 OK including the
X-Exit-IP
header - After receiving the 200 OK, your client sends the actual HTTPS traffic through this tunnel
- The tunnel ensures your HTTPS traffic remains encrypted end-to-end between your client and the target server
How It Works
When your client sends a CONNECT request to establish an HTTPS tunnel:Availability
TheX-Exit-IP
header:
- Is automatically included in all CONNECT responses (HTTPS traffic only)
- Shows the actual IP that will be used for the tunneled connection
- Is not available for plain HTTP requests (which don’t use CONNECT)