in reply to Re: Automating Web Forms with a POST method
in thread Automating Web Forms with a POST method

Just how do you get LWP::UserAgent to mimic the POST?
  • Comment on Re: Re: Automating Web Forms with a POST method

Replies are listed 'Best First'.
Re: Re: Re: Automating Web Forms with a POST method
by mdillon (Priest) on Jul 17, 2001 at 04:45 UTC
    try something like this (from perldoc lwpcook):
    use HTTP::Request::Common qw(POST); use LWP::UserAgent; $ua = LWP::UserAgent->new; my $req = POST 'http://www.perl.com/cgi-bin/BugGlimpse', [ search => 'www', errors => 0 ]; print $ua->request($req)->as_string;