Is it possible to edit HTTP request using fiddler so that my asp.net application hosted elsewhere return true for the following code block
HttpContext.Current.Request.Url.Host == "localhost"
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sure you can. Simply add the following:
Then, use the url: http://fakelocal/whatever in the client.
Fiddler will change the host header to “LOCALHOST” and direct the request to the server IP of your choice.
Note, of course, that this won’t work if there’s a proxy upstream, because upstream proxies do their own DNS lookups.