I want to write either a perl (CGI) or php script on a server to behave like a proxy server. I want to be able to enter the hostname and port on firefox proxy settings (or IE, chrome, whatever) and then go to a site, and have my webserver forward the request to another server, and forward the response back to the clien开发者_开发问答t. This way, I am basically using my server as a proxy server. Is there a perl or php script that can do this? If so, what?
Do not suggest anything along the lines of PHProxy or Glype.
I don't want a server that I go into with my browser and enter a URL to browse. That's a big NO-NO.
The CPAN module HTTP::Proxy implements a simple HTTP proxy server that you can start and run out-of-the-box.
精彩评论