Using the forward proxy
This listener also acts as a forward proxy. Point a client's HTTP
proxy at it and send CONNECT host:port; it picks a healthy upstream
proxy from the database, tunnels to the target through it, and splices the bytes
both ways. Only CONNECT (HTTPS tunnelling) is handled.
Selection is filtered by the P-* headers below. Among the matches, one
of the top-scoring proxies is chosen at random, with failover to the rest.
With curl these ride the CONNECT line, so they must be sent
with --proxy-header, not -H — a plain
-H header travels inside the TLS tunnel to the target and the proxy
never sees it.