dockthepod has asked for the wisdom of the Perl Monks concerning the following question:
I am a 100% perl newbie but am learning. My school has a few kiosk-type computers that only allow sites w/in the school domain to be viewed. This always bugged me so i thought it might be somewhat fun to write a perl cgi that would fetch a page and display it back on the school's server, thus bypassing the filter.
So... what i have is very simple but it works in a terminal but no when i try to view it in a browser... it says "internal server error" which really helps me out. Here we go...
#!/usr/bin/perl -w use LWP::Simple; my $PAGE="http://www.slashdot.org"; $_ = get $PAGE or die "can't fetch page!"; print $_;
Any help would be excellent, as this simple problem really bugs me...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: very simple question...
by Trimbach (Curate) on Nov 11, 2001 at 09:05 UTC | |
|
Re: very simple question...
by George_Sherston (Vicar) on Nov 11, 2001 at 06:07 UTC | |
|
Re: very simple question...
by Anarion (Hermit) on Nov 11, 2001 at 14:14 UTC | |
|
Re: very simple question...
by dockthepod (Acolyte) on Nov 12, 2001 at 04:26 UTC | |
|
Re: very simple question...
by Elliott (Pilgrim) on Nov 12, 2001 at 00:29 UTC |