EllenWS has asked for the wisdom of the Perl Monks concerning the following question:
The server should direct me to a 'middle' page first and wait for a while (around half min)for processing the search. Then, that middle page would redirect to another page (that's what I want to get).use LWP::UserAgent; $ua = LWP::UserAgent->new; $ua->agent('Mozilla/4.0'); use HTTP::Request::Common qw(POST); push @{ $ua->requests_redirectable }, 'POST'; #change default setting my $req = POST( 'http://some.com', Content_Type => 'multipart/form-data' , Content => [ para1=> "value"]); $response = $ua->request($req);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Redirection doesn't work?
by sauoq (Abbot) on Sep 27, 2005 at 09:00 UTC | |
by EllenWS (Initiate) on Sep 27, 2005 at 10:52 UTC | |
by sauoq (Abbot) on Sep 27, 2005 at 16:08 UTC |