This is a migrated thread and some comments may be shown as answers.

A question regarding capturing and responding to HTTPs

2 Answers 199 Views
FiddlerCore
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 24 Nov 2017, 12:00 AM

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.

2 Answers, 1 is accepted

Sort by
0
Sam
Top achievements
Rank 1
answered on 24 Nov 2017, 02:49 PM
Never mind, I think I found a solution.
0
mitul
Top achievements
Rank 1
answered on 07 Dec 2018, 10:18 PM
Sam - I am facing the same problem. Can you please help me with that?
Tags
FiddlerCore
Asked by
Sam
Top achievements
Rank 1
Answers by
Sam
Top achievements
Rank 1
mitul
Top achievements
Rank 1
Share this question
or