You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we are not able to mock HTTPS requests if the client sends a CONNECT request first. I do try to "fool" these clients by setting HTTPS_PROXY to a http location but it doesn't work for all clients, for example it doesn't work for curl but it works for axios
The issue with CONNECT request is that it tells the proxy to set up a TCP tunnel to the destination which is then secured by TLS. Since the tunnel is encrypted the proxy is not able to read the actual requests and is not able to mock it.
Client issues a CONNECT request to proxy. This request only contains the host ("google") and port ("443") and nothing else from the request
Proxy sets up a tunnel between client and google
Client initiates TLS handshake after which any data flowing through the tunnel in encrypted
One option to explore would be implementing a MITM proxy but the issue with that is getting the containers spun by act to accept the CA certs without having to manually force it.
The text was updated successfully, but these errors were encountered:
Feature request
Currently we are not able to mock HTTPS requests if the client sends a CONNECT request first. I do try to "fool" these clients by setting HTTPS_PROXY to a http location but it doesn't work for all clients, for example it doesn't work for
curl
but it works for axiosThe issue with CONNECT request is that it tells the proxy to set up a TCP tunnel to the destination which is then secured by TLS. Since the tunnel is encrypted the proxy is not able to read the actual requests and is not able to mock it.
So for example:
One option to explore would be implementing a MITM proxy but the issue with that is getting the containers spun by
act
to accept the CA certs without having to manually force it.The text was updated successfully, but these errors were encountered: