Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

I have some software which makes a request to a specific URL in internet and I want it to receive my custom response. Is there any software tool for that on Windows? Also it would be nice if I could map a regexp instead of specific URL

share|improve this question
up vote 2 down vote accepted

Found the solution myself:

  1. Set the domain of the URL to point to in windows hosts file
  2. Install nginx and set it up to show your file for the request response to which you're willing to modify and proxy all other requests to the original server
share|improve this answer

Does Privoxy help you?

Privoxy is a non-caching web proxy with advanced filtering capabilities for enhancing privacy, modifying web page data and HTTP headers, controlling access, and removing ads and other obnoxious Internet junk. Privoxy has a flexible configuration and can be customized to suit individual needs and tastes. It has application for both stand-alone systems and multi-user networks.

share|improve this answer
Thanks, but it only seems to work with browser. What I need is for it to capture all HTTP traffic in Windows so that I could manipulate responses on the top level. – Nikita Volkov Jan 30 '11 at 14:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .