Tried perldoc LWP::Simple
noted the example:
perl -MLWP::Simple -e 'getprint "http://www.sn.no"'
so I tried:
/usr/central/bin/perl -MLWP::Simple -e 'getprint "http://foo.acme.com/"'
# perl is in /usr/central/bin
on Unix the error is:
501 Protocol scheme 'hostfirewall.acme.com' is not supported
<URL:http://foo.acme.com/>
# names changed to protect the innocent
Why does that happen? Is it picking up our firewall from an ENV variable
that's part of the shell?
Do I need to tell perl to ignore the firewall, somehow?
What I'd like to accomplish (perhaps with a one-liner ) is check the message
headers returned from an internal web server is LWP::UserAgent a better tool
for that?
thanks for any insight,
Rob
--
> -----Original Message-----
> From: Brett W. McCoy [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 07, 2001 9:36 AM
> To: Stéphane JEAN BAPTISTE
> Cc: PERL
> Subject: Re: to reach an URL
>
> On Mon, 7 May 2001, Stéphane JEAN BAPTISTE wrote:
>
> > I'm looking for a command which permit to reach an URL from the script.
>
> use LWP::Simple;
>
> my $url = 'http://some.domain.com';
> my $page = get($url);
>
> There are plenty more ways to get urls via LWP and the HTTP modules.
>
> -- Brett
> http://www.chapelperilous.net/btfwk/
> ------------------------------------------------------------------------
> "When it comes to humility, I'm the greatest."
> -- Bullwinkle Moose
>
>