I'm looking for a way to use Fiddler to proxy an HTTPS session into an HTTP session, so the explorer will use an HTTP session while the Fiddler handles the HTTPS session in front of the server:
Client (explorer) <--http--> Fiddler <--https--> Server
Can anyone say if this can be done via Fiddler scripting?
If you have another idea how to do this with another tool (not Fiddler), I'm open to suggestions :)
Thanks! Yohay
Sending GET Request To create a GET request inside Fiddler, choose the GET method and type the server URL in the URL box. Then click the Execute button. NOTE: Once the request is sent to the server, use the Inspectors to inspect the response.
In Fiddler, go to Tools > Fiddler Options > HTTPS. Select Capture HTTPS CONNECTs and Decrypt HTTPS traffic. Go to File > Capture Traffic or press F12 to turn off capturing.
Enable HTTPS traffic decryptionClick Tools > Options > HTTPS. Click the Decrypt HTTPS Traffic box.
@troy's answer is nice but not enough. You should handle CONNECT's:
if (oSession.HostnameIs("app.yourdomain.com") )
{
// Handle CONNECT Tunnels
if (oSession.HTTPMethodIs("CONNECT"))
{
oSession["x-replywithtunnel"] = "FakeTunnel";
return;
}
oSession.fullUrl = "http://somedomain:someport" + oSession.PathAndQuery;
}
Try this:
if (oSession.fullUrl.StartsWith("http://"))
{
oSession.oRequest.headers.UriScheme = "https";
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With