Gossamer Forum
Quote Reply
LWP MOD
hey,

I have a question about how the altavista.cgi uses the LWP feature. I have a page on a remote server and would like to use the altavista.cgi type script, that when accessed on thabox.net/altavista.cgi, will show the html of the page http://beat-box.com/sites/music.txt.

Such as, when http://thabox.net/music.cgi is accessed, using LWP the page that http://beat-box.com/sites/music.txt will show up.

Can anyone come up with a simple solution using what alex has done already with altavista.cgi?

Thanks for your time!. Smile

------------------
BeatBox Entertainment
beat-box.com
Ron Newbigging

Quote Reply
Re: LWP MOD In reply to
just this:

Code:
#!/usr/local/bin/perl

use LWP::Simple;

$stuff = get("http://beat-box.com/sites/music.txt");

print "Content-type: text/html\n\n";
print $stuff;

jerry