HTTPS proxy keyword without a PROXY fallback
medium
"HTTPS host:port" tells the browser to open TLS to the proxy itself. Chromium and Firefox support it; Windows passes the entry on, but older Windows programs cannot use it, and most on-premises proxies have no TLS listener. Without a PROXY fallback those clients end up without a working proxy.
Why it matters
The HTTPS keyword is not “proxy for https traffic”; it means the client-to-proxy hop is
TLS. It is correct for cloud gateways that terminate TLS on their listener and wrong for
the typical enterprise forward proxy that accepts plain HTTP CONNECT. Engines that do not
know the keyword drop the entry (PAC-E011). Windows (WinHTTP) returns the HTTPS entry to
the program that asked, but in the lab (2026-10-11) a .NET Framework program turned it into a
broken proxy address and its request failed, and a .NET 8 program ignored the entry for http
requests. Two failure shapes follow: a client that cannot use the entry goes DIRECT or fails;
a browser opens TLS to a proxy that speaks plain HTTP and the connection fails. If HTTPS is intended, keep a PROXY fallback in the same list
for clients that cannot use it, and verify the proxy actually offers TLS.
How to fix
Use "PROXY host:port" for plain-HTTP proxies; for a TLS-terminating gateway write "HTTPS gw:443; PROXY gw:8080" so that other engines still get a proxy.
Examples
Bad
function FindProxyForURL(url, host) {
return "HTTPS gateway.corp.example:443";
}
Open bad example in checkerGood
function FindProxyForURL(url, host) {
return "HTTPS gateway.corp.example:443; PROXY gateway.corp.example:8080";
}
Open good example in checkerEngine behaviour
| Engine | Behaviour | Source |
|---|---|---|
| chromium | "HTTPS host:port" is an accepted PAC return keyword (TLS to the proxy; HTTP/2 to the proxy is possible, QUIC is not selectable from PAC). | doc, verified 2026-10-04 · ref |
| firefox | "HTTPS host:port" is read as a proxy reached over TLS; in the lab Firefox 157 sent the request inside the TLS connection. Firefox drops such entries only when the preference network.proxy.proxy_over_tls is turned off. When the proxy's certificate did not match, Firefox showed an error and did not try the PROXY entry after it (lab, 2026-10-15). | code, verified 2026-10-15 · ref |
| winhttp | The HTTPS entry is returned to the program unchanged. A program that sets that entry on its request connects to the proxy with TLS and sends the request inside (GET for http, CONNECT for https); when the proxy's certificate does not match the proxy name, the request fails and the program gets an error. A .NET Framework program turned the entry into a broken proxy address and its request failed; a .NET 8 program skipped it for http requests and used no proxy. | lab, verified 2026-10-15 |
| wininet | A desktop program's own request goes to the HTTPS proxy over TLS with the request inside. When TLS to that proxy fails (wrong certificate name, or a port without TLS), the request goes on to the next PROXY entry of the list. | lab, verified 2026-10-15 |
Related rules
- Return value is not a valid proxy string PAC-E011
- SOCKS keywords mean different versions on different engines PAC-K005