开发者

Write simple HTTP forwarding perl or php script to run as a proxy server

开发者 https://www.devze.com 2023-02-04 17:43 出处:网络
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 th

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消