in reply to Re: Submit a form using perl module
in thread Submit a form using perl module
The user places the request using LWP (LWP::UserAgent, even) rather than HTTP::Request, as shown in the following example:
use HTTP::Request::Common; $ua = LWP::UserAgent->new; $ua->request(POST 'http://example.com/survey.cgi', [ name => 'Gisle Aas', email => 'firstname.lastname@example.org', gender => 'M', born => '1964', perc => '3%', ]);
HTTP::Request could have been used instead of HTTP::Request::Common.
In Section Seekers of Perl Wisdom