www_proxy is a simple non-caching HTTP proxy. Great for situations when the official route between two hosts is down/slow/firewalled , the routers cannot be reconfigured, and you need to look at a page on the one host from the other.
In addition, it now supports user-agent spoofing (there are a few sites that play a smart alec and will not show you pages unless they like your User-agent), and filtering the content with a custom filter application.
install libtcp++-0.0.1c or newer
gunzip -c www_proxy-0.0.3.tar.gz | tar xvf -
config file parameters:
port port_num - if not present, defaults to 8000
log_file "file_name" - defaults to www_proxy.log
spoof_user_agent "agent_name" - if not present, user agent is not spoofed
debug_level level_num - defaults to 0
filter_app "app_path [args]" - filter application. must read from stdin, and write to stdout. Note that it gets everying, including the headers. You are welcome to implement your own filters. Any language will do, as long as you read from STDIN and write to STDOUT. If you do not specify it, filtering is not done.
What's New in This Release:
· Added filter_app option. The process specified in filter_app is execv()'ed , the response from the web server is sent to its stdin, the output is read from stdout and send back to the client. Added debug_level option. You can customize how much info is printed to the log file