First of all, thanks a lot for this amazing framework. I have developed a small tool (c#) to intercept requests to a server and give them a local response using the LoadResponseFromFile method. This works nicely with both HTTP and HTTPS requests. Though, with HTTPS, I would have to let the first request pass to the server. I want to make it so that the tool would do without that. From my basic understanding, if I am not wrong, this has something to do with the original handshake. All subsequent requests can be handled without fuss.
Now, I went to the Fiddler tool and tries to trace this. The request that I cannot seem to handle, i.e. the first request, is displayed as:
200 HTTP Tunnel To x.x.x:443
where x.x.x is the server. The body size is 0. On Raw tab, I get:
HTTP/1.1 200 Connection Established
and some lines under it, Encrypted HTTPS traffic flows through this CONNECT tunnel. HTTPS Decryption is enabled in Fiddler, so decrypted sessions running in this tunnel will be shown in the Web Sessions list plus some other data.
Can you guide me in the right direction on how to handle those requests locally without having to rely on the server?
Regards and thanks.