views:

46

answers:

2

Is there any such thing that would allow me to use an IP address to browse with HTTP but then give it a URL to use for the web app to pick up on? This would allow me to test multiple server locations of a web app (think dev, QA, live) without having to change my hosts file or manage a bunch of sub-subdomains. So for example if the site is used to looking up your account by subdomain like youraccount.theapp.com then I am looking for a way that I could use that URL but choose the IP it goes to on the fly. any idea?

+1  A: 

I'm not sure if this is exactly what you're looking for, but Fiddler allows you to modify the request headers and works with most browsers. So you can browse to any IP and set the Host header to the domain/subdomain that you want the server to read, if that is what you need.

Gerald
Yes, Fiddler works well for this. Use a rule that sets the X-OverrideHost flag (http://www.fiddlertool.com/fiddler/dev/SessionFlags.asp) to the IP of the server to connect to, and then just type the URL in the browser. Fiddler will use the IP address in the x-OverrideHost property to connect to, but will send the Host header from the URL.
EricLaw -MSFT-
A: 

Modify Headers firefox add on should do what you want. But it is obviously alot more then what you need.

I think if somebody made an add on you were describing it would be quite useful.

The add on Url Alias does half the job, it gives you the convenience of using a short cut but it would still send the IP address in the request. If they just added an option to toggle sending the alias in the request you wouldn't have to touch your hostfile anymore.

Ryu