I set up a HTTPS proxy server and use macos system proxy settings to set to localhost:8080. However the system seems keeping sending HTTP requests to the proxy and the TLS throws errors.
I guess that Macos by default forward original request with a new HTTP request to the proxy. How can I tell the system to use HTTPS instead of HTTP?
In pac file or other APIs the proxy option usually contains only host
and port
, so how does the client know it is a HTTP
or HTTPS
host?