Proxy question

4 posts, 0 answers
  1. Xu
    Xu avatar
    7 posts
    Member since:
    Aug 2014

    Posted 16 Aug 2014 Link to this post

    Hi, all:

    If URLMonInterop.SetProxyInProcess() set the proxy to a machine other than itself, will Fiddler capture the traffic?

    What I need is after captureing the request, Fiddler throw it to a remote proxy server, and then waiting response. Is it possible? and how to fulfill?
  2. Xu
    Xu avatar
    7 posts
    Member since:
    Aug 2014

    Posted 16 Aug 2014 Link to this post

    I studied Chain Fiddler to an Upstream Proxy and The Fiddler Proxy, and other materials, 
    It seems 
         oSession["X-OverrideGateway"]
    could resolve my problem.

    Does that mean I can set a after Fiddler proxy for every session?

    I will try.
  3. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 18 Aug 2014 Link to this post

    Fiddler will automatically adopt the system proxy (IE's Tools > Internet Options > Connections > LAN Settings) as its default when it starts up. To change this behavior, or manually specify a different proxy, inside Fiddler choose Tools > Fiddler Options > Gateway.

    As you noted, you can manually set an upstream proxy on a single request using the X-OverrideGateway flag.

    You only use URLMonInterop.SetProxyInProcess() when you are running a FiddlerCore based application and want to set only that one application containing FiddlerCore to use the FiddlerCore-based proxy. Stated another way, this API allows a FiddlerCore application to capture traffic from itself without needing to become the system proxy. That API is limited to controlling traffic from WinINET/URLMon. This is primarily useful if you have an application that hosts one or more of the IE WebBrowser controls within itself.

    Regards,
    Eric Lawrence
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  4. Xu
    Xu avatar
    7 posts
    Member since:
    Aug 2014

    Posted 18 Aug 2014 in reply to Eric Lawrence Link to this post

    Eric, I see. Thx a lot! 
Back to Top