liri has asked for the wisdom of the Perl Monks concerning the following question:

Anybody knows if it's possible to send a plain/vanilla post with WWW::Mechanize?

Something like $mech->send_post("POST /var.cgi=1312?das");


thanks.

Replies are listed 'Best First'.
Re: WWW::Mechanize and POST
by Corion (Patriarch) on Dec 25, 2005 at 12:58 UTC

    As WWW::Mechanize is a subclass of LWP::UserAgent, it is completely possible to send a POST request via the request method that LWP::UserAgent exposes. See the LWP::UserAgent documentation, and likely HTTP::Request.