I
IanW
Hi
I'm having trouble with LWP and 302 redirects. I found the
"$ua->requests_redirectable" parameter in the LWP documentation but it still
doesn't work. Here's my code:
use LWP::UserAgent;
my $ua = new LWP::UserAgent;
push @{ $ua->requests_redirectable },'POST';
my $request = HTTP::Request->new(POST => 'http://blah.blah');
$request->content_type('application/x-www-form-urlencoded');
$request->content("LOGIN1=$action&Y=$Y&p=$P");
my $resp = $ua->request($request);
Any ideas what I'm doing wrong?
Ian
I'm having trouble with LWP and 302 redirects. I found the
"$ua->requests_redirectable" parameter in the LWP documentation but it still
doesn't work. Here's my code:
use LWP::UserAgent;
my $ua = new LWP::UserAgent;
push @{ $ua->requests_redirectable },'POST';
my $request = HTTP::Request->new(POST => 'http://blah.blah');
$request->content_type('application/x-www-form-urlencoded');
$request->content("LOGIN1=$action&Y=$Y&p=$P");
my $resp = $ua->request($request);
Any ideas what I'm doing wrong?
Ian