Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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
up vote 2 down vote accepted

Found the solution myself:

  1. Set the domain of the URL to point to 127.0.0.1 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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.