develooper Front page | perl.libwww | Postings from October 2002

Re: getstore and redirects..

Thread Previous | Thread Next
Keary Suska
October 1, 2002 09:41
Re: getstore and redirects..
Message ID:
on 10/1/02 5:25 AM, purportedly said:

> I am new to this list, LWP in general, and only been using perl for a year
> or so...
> so please bare with me if I forgot a place to RTFM..
> I am fetching a page with LWP::Simple
> use LWP::Simple qw(getstore);
> my $result = getstore( $page, $file);
> now $page normally is just another perl script that prints HTML depending on
> its query string..(always using GET)
> whick works great.
> but in some instances, this perl script uses a:
> print "location: $another_page\n\n";

IIRC, LWP::Simple does not perform automatic redirects. You will need to use
LWP::UserAgent and LWP::Request.

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About