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

Re: getstore and redirects..

Thread Previous | Thread Next
From:
Keary Suska
Date:
October 1, 2002 09:41
Subject:
Re: getstore and redirects..
Message ID:
B9BF2C58.13C97%hierophant@pcisys.net
on 10/1/02 5:25 AM, frankieh@iinet.net.au 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About