Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Please find the scenario below:

I want to know from which country my application is getting called, which can be easily detected by the IP Ranges.

But for testing purpose I need to get the IP's from different countries. I know few features of Fiddler like auto responder.

But I want to know that how can I update the response before sending it to server.. by using Fiddler or any known tool.

share|improve this question

migrated from webapps.stackexchange.com May 27 '11 at 9:41

This question came from our site for power users of web applications.

You can't (generally) change the outbound IP with Fiddler or another tool. You'll have to find an open-proxy in the target locale and use that to bounce your traffic. A few servers will respect an X-Forwarded-For HTTP header that specifies the target IP of your choice, but most won't.

share|improve this answer

you can use this script under FiddlerScript tag to add XFF header for a given site. sXFFip = "1.2.3.4"

if (sXFFip.length > 0) {
        if (oSession.uriContains(".xyz.com")) { 
            oSession.oRequest.headers.Add("X-Forwarded-For", sXFFip); 
        }

    }

This should append xff header with the one you declare.

share|improve this answer

You can try

   if (oSession.HostnameIs("subdomain.example.com")){
   oSession.bypassGateway = true;                   // Prevent this request from going through an upstream proxy
   oSession["x-overrideHost"] = "128.123.133.123";  // DNS name or IP address of target server
   }

For more details check this link

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.