On Wed, 24 Mar 2004, Patrick Gardella wrote:
perhaps something like:
my $form = $agent->current_form;
my $uri = URI->new("http://www.abc.com/cgi-bin/stuff");
$form->action($uri);
$form->method("POST");
matt
I'm testing a form using Mech, and was wondering if there were a way to
force it to use GET or POST? The web page I'm trying to script has a
bad value for the method ("$HTTP_POST_VARS") rather than POST or GET,
so Mech dies with an Unknown Method error. Browsers just default to a
GET, and it seems to work fine.
Being able to change the $request->method() is what I'm looking for.
Thanks!
Patrick
--
gedanken