Hi,
I’m fairly new to HAProxy and trying to establish if it is possible to replicate something that we can do within Fiddler Fiddler Classic but move to HAProxy…
Essentially, all I want to do is let all traffic pass through to another internal/internet proxy and intercept only a specific HTTP CONNECT method.
E.G. If host = example.com then rewrite to host = example.co.uk.
As a result, all traffic will tunnel to the new host…
For example in Fiddler I can script like this :
// Capture only example.com and rewrite host to example.co.uk for the CONNECT method and tunnel
if (oSession.HTTPMethodIs("CONNECT") && (oSession.host == "example.com:443")) {
oSession.host = "example.co.uk:443";
}
Client → HAProxy [Intercept CONNECT / Rewrite ] → Internal Proxy → Internet
Is this even possible with HAProxy…???
I cannot seem to find exact similar use-cases…
Thanks!
J