> 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.

Mech doesn't have any way to deal with that directly, but I wonder if
you could change the underlying HTML::Form object.  $mech->form should
give you your current form.

It's always possible to subclass Mech, too, so that you can override the
request() method, but that's pretty hacky as well.

xoa



-- 
Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Reply via email to