shanu_040 has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks

I like to write a script which should work as proxy server. If I create a proxy server using HTTP::Proxy I need to configure browser to use it but I do not want to configure the browser. What I am trying is:

Let say the Proxy URL: somedomain.com:3128
Requested Site: http://somesite.com/

No Browser Configuration for proxy
If I type http://somedomain.com:3128?uri=http://somesite.com/
on browser's address bar it should open the page for requested site.

Could you please help me, How do I approach it.

give some ideas how should I proceed.

  • Comment on Creating a Proxy Server Using HTTP::Proxy

Replies are listed 'Best First'.
Re: Creating a Proxy Server Using HTTP::Proxy
by marto (Cardinal) on Aug 09, 2010 at 10:19 UTC

    From your description you are looking for something like a web based anonymous proxy. Have you read the documentation and source code for HTTP::Proxy to find out how it works?

Re: Creating a Proxy Server Using HTTP::Proxy
by Anonymous Monk on Aug 10, 2010 at 02:46 UTC

      That's exactly I am looking at but CGIProxy uses a HTML form to take the input site. But If I look at HTTP::Proxy it uses HTTP::Daemon(Header Buffer) to get input site.

      Let say I want to access http://ieeexplore.ieee.org. If I put http://192.168.100.11:2020/ on browser's address bar it should open desired sitehttp://ieeexplore.ieee.org.

      Could you please guide me further.

        So, it does 'exactly' what you're looking for, except it doesn't? Again, have you looked at the source code to see if you can simply change how it works or read the documentation?

        "Let say I want to access http://ieeexplore.ieee.org. If I put http://192.168.100.11:2020/ on browser's address bar it should open desired sitehttp://ieeexplore.ieee.org."

        This makes no sense, how would the entering just the proxy url in the address bar open any other URL? Are you looking code that can read minds? This doesn't match your initial requirement where a url is passed as a parameter.