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

Need help related to FiddlerApplication.Prefs.SetStringPref()

1 Answer 144 Views
Windows
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 03 May 2015, 11:24 AM

Hello,

 

first I want to say thank you for this fantastic and very useful tool. But I have a question regarding switching between multiple interfaces on my

PC with FiddlerApplication.Prefs.SetStringPref(): Each time I send a Http POST Request after changing my IP with FiddlerApplication.Prefs.SetStringPref()

it works, but if I send a GET Request my IP is not changing. Can you help me please?

 

Thank You!

1 Answer, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 07 May 2015, 12:39 AM
Hi, Markus--

I think you're asking about the behavior of the "fiddler.network.egress.ip" preference. Is that correct? Can you more completely describe your scenario?

This preference affects the local binding of the endpoint when a new TCP/IP connection is established. Taking a total shot in the dark, would I be correct in guessing that you're trying to change the value of this preference between requests without restarting Fiddler?

If so, the problem you're encountering isn't actually related to the request method. It's related to the fact that some of the requests are getting serviced by Fiddler's pool of already-established keep-alive connections, and those connections are already established. Only when you exhaust that pool and a new connection is made is the change in the preference relevant.

To clear the Keep-Alive pool, you can either hit CTRL+X (to clear the Session list as well) or you can use the scripting engine to call FiddlerApplication.oProxy.PurgeServerPipePool();

Regards,
Eric Lawrence
Telerik
 
Tags
Windows
Asked by
Markus
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
Share this question
or