Re: WWW::Mechanize and forcing POST

2004-03-27 Thread Patrick Gardella
Exactly.  It's not a bug in Mech.  It's badly formed HTML.  I was 
trying to find a way
around the badly formed HTML.

Patrick

On Mar 26, 2004, at 9:00 PM, Andy Lester wrote:

Could you told us what page Mech is having a different behavior than 
MSIE?
We really want Mech having the same behavior as MSIE and if the
behavior with that page is different that's a bug in Mech.
It's not a bug in Mech.

Mech IS a browser-in-an-object, but it's not meant to emulate any
given browser.  There are plenty of things that browsers handle that
Mech doesn't, mostly in the badly-formed HTML department.
xoa

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


smime.p7s
Description: S/MIME cryptographic signature


Re: WWW::Mechanize and forcing POST

2004-03-27 Thread JUANMARCOSMOREN
Andy Lester wrote:
  Could you told us what page Mech is having a different behavior than MSIE?
  We really want Mech having the same behavior as MSIE and if the
  behavior with that page is different that's a bug in Mech.
 
 It's not a bug in Mech.  
 
 Mech IS a browser-in-an-object, but it's not meant to emulate any
 given browser.  There are plenty of things that browsers handle that
 Mech doesn't, mostly in the badly-formed HTML department.

Of course, you are right. I didn't explain correctly myself.

I meant a bug in the chain of objects (in the system).

I didn't know where the bug was, but I knew there was a bug.

Juan




Re: WWW::Mechanize and forcing POST

2004-03-24 Thread Gedanken
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