A question regarding capturing and responding to HTTPs

3 posts, 0 answers
  1. Sam
    Sam avatar
    2 posts
    Member since:
    Nov 2017

    Posted 23 Nov 2017 Link to this post

    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. Sam
    Sam avatar
    2 posts
    Member since:
    Nov 2017

    Posted 24 Nov 2017 in reply to Sam Link to this post

    Never mind, I think I found a solution.
  3. mitul
    mitul avatar
    1 posts
    Member since:
    Dec 2018

    Posted 07 Dec 2018 Link to this post

    Sam - I am facing the same problem. Can you please help me with that?
Back to Top