I’m trying to catch outgoing HTTP request and replace it with another. For example i have a application that initiate request to www.xxxxxxxxxx.com/something
I need to catch this request and instead of going to http://www.xxxxxxxxxx.com/something i have to redirect it to www.yyyyyyyyyyyy.com/somethingElse.
The request is made by application that i have no access to the source code so it have to be done outside the application.
Anyone may give me a hint how this may be done?
you can use fiddler auto responder for this
Obviously this would only work if you have full access to the client machine.
If this needs to be done from the server you can set up a proxy on the server to relay the request to a different web page.
check this blog entry for the details
This blog post describes how to modify requests, but you can just as easily forward them to a different domain.
It is also possible to use this technique over HTTPS using generated certificates
http://www.fiddler2.com/fiddler/help/httpsdecryption.asp
Some people appear to be claiming that this answer will not work, i appreciate the fact that they are baffled by the capabilities of fiddler, but in the end they are wrong, do your research.
An even easier solution could be to override your local DNS, you can do this with the HOSTS file on windows, keep in mind that this will send the original host headers to the different domain, which you may not want.