and then visit "yahoo.com", I get google's homepage which is great,
but I see in the request that the request headers contain "Host:
yahoo.com" which google apparently ignores, but when visiting a site
that hosts multiple domains with different host names, it no longer
works.
Is there (or can there be) an option to not only redirect requests to
the remapped host/IP BUT ALSO remap the Host http header to match?
if (oSession.HostnameIs("foo.com")) { oSession.Hostname =
"bar.com" }
Or, you could type
in the QuickExec box.
Offering a way to add a parameter for each line in the HOSTS window is
an interesting idea. It wouldn't match the syntax of the "real"
windows hosts file, but should be pretty easy to do.
Fiddler’s AutoResponder permits you to use regular expression group replacements to map text from the Match Condition into the Action Text. For instance, the rule:
Match Text |
Action Text |
REGEX:.+/123/(.*) |
…will map a request for http://example.com/123/Test1.gif to http://example.com/123/dev/Test1.gif.