Re: How to write output of a GET request to disk?

Brian LeJeune (blejeune@bellsouth.net)
Sat, 9 Sep 2000 23:25:01 -0400


I need to unsubscribe from this crazy mailing list... can anyone tell me how
to get off of this list?


----- Original Message -----
From: "S.Mohapatra" <ykg@123india.com>
To: "Casey R. Tweten" <crt@kiski.net>
Cc: <libwww@perl.org>
Sent: Saturday, September 09, 2000 9:49 PM
Subject: Re: How to write output of a GET request to disk?


> Can any one please tell me how to unsubscribe from this list.
> Regards,
> Subhendu Mohapatra
> Freelance web designer
>  www.plus2net.com
>
> ----- Original Message -----
> From: Casey R. Tweten <crt@kiski.net>
> To: Rob McMillin <rlm@pricegrabber.com>
> Cc: <libwww@perl.org>
> Sent: Sunday, September 10, 2000 2:55 AM
> Subject: Re: How to write output of a GET request to disk?
>
>
> > Today around 11:16am, Rob McMillin hammered out this masterpiece:
> >
> > : I've been reading the docs for the libwww code, and was wondering if
> > : there is any way to write the output of a request directly to a file
on
> > : disk. The returned data could be potentially quite large and shouldn't
> > : be stored in memory.
> >
> > The most simple answer I can give you is:
> >
> > shell> perl -MLWP::Simple -e "getprint('http://www.web.com')" >
file.html
> >
> > : Also, I would like to know if there is a way to just read headers and
> > : ignore the rest of the data based on the value of the returned
headers.
> > : The motivation is to avoid downloading files in cases where the
> > : timestamp hasn't changed.
> >
> > perldoc HTTP::Headers
> >
> > I would imagine.
> >
> > --
> > print(join(' ', qw(Casey R. Tweten)));my
> $sig={mail=>'crt@kiski.net',site=>
> > 'http://home.kiski.net/~crt'};print
> "\n",'.'x(length($sig->{site})+6),"\n";
> > print map{$_.':
> '.$sig->{$_}."\n"}sort{$sig->{$a}cmp$sig->{$b}}keys%{$sig};
> > my $VERSION = '0.01'; #'patched' by Jerrad Pierce <belg4mit at MIT dot
> EDU>
> >
> >
>
>