Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Perl proxy script

by EvdB (Deacon)
on Apr 18, 2005 at 09:06 UTC ( #448759=note: print w/ replies, xml ) Need Help??


in reply to Perl proxy script

As you are on a shared host it is unlikely that you'd be able to take advantage of mod_perl or mod_proxy as suggested.

Take a look at LWP, specifically LWP::Simple. It should be easy to write a quick script something like this (not tested):

#!/usr/bin/perl use strict; use warnings; use CGI; use LWP::Simple; my $url = CGI->param('url'); print CGI->header; print get( $url );
which would be called using something like: http://your.host.com/the_script.pl?url=http://google.com. This is primitive but should work for very basic things.

--tidiness is the memory loss of environmental mnemonics


Comment on Re: Perl proxy script
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://448759]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (16)
As of 2014-07-24 16:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (162 votes), past polls