Hi,
I've written this quick script which works until I put in the redirect_ok call to get it to follow a 302.
use WWW::Mechanize; use CGI; my $agent=WWW::Mechanize->new(); $agent->add_header( Cookie => $ENV{'HTTP_COOKIE'} ); $agent->get('http://lhrbod-apdhz001.ad.com/ess/SignUpAsEmployee.aspx') +; $agent->redirect_ok(); print CGI::header(); print $agent->content();
The logs say Can't call method "value" on an undefined value at /opt/perl-5.8.3/lib/site_perl/5.8.3/WWW/Mechanize.pm line 1052. Am I supposed to supply some parameters to redirect_ok?
Thanks for any help.
js1.
2006-01-06 Retitled by planetscape, as per Monastery guidelines
Original title: 'redirect_ok'
In reply to Problem calling WWW::Mechanize redirect_ok by js1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |