Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 3040
Status: resolved
Priority: 0/
Queue: WWW-Mechanize

People
Owner: MARKSTOS [...] cpan.org
Requestors: andy [...] petdance.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Mech doesn't like forms with naked VALUEs
Ed had a case where a form tag like this: <INPUT TYPE="text" VALUE> made Mechanize post wacky stuff.
[PETDANCE - Fri Jul 25 10:40:09 2003]: Show quoted text
> Ed had a case where a form tag like this: > > <INPUT TYPE="text" VALUE> > > made Mechanize post wacky stuff.
As a suggestion: If you know what Mozilla, IE and Mechanize are doing in this case, post it so we can know where's the problem and maybe someone else could post a patch or add a suggestion. And please, nobody look at any RFC or W3C document. We must do what IE and Mozilla are doing.
Where's the problem? I've tested with this HTML: <FORM METHOD=POST> <INPUT TYPE="text" NAME=hello> <INPUT TYPE="text" VALUE> <INPUT TYPE="text" NAME=bye> <INPUT TYPE="submit"> </FORM> And this script: #!/usr/bin/perl -w use strict; use diagnostics; use WWW::Mechanize; my $agent = WWW::Mechanize->new(); my $res = $agent->get('http://127.0.0.1/~user/'); if ($res->is_success) { if ($agent->form_number(1)) { $agent->field('hello', 'hellotext'); $agent->field('bye', 'byetext'); my $res = $agent->submit(); } } Then I checked what was on the wire with ethereal and saw that Mozilla, IE and Mechanize sent the same "hello=hellotext&bye=byetext". So, Ed could you post the case that made Mechanize post wacky stuff?
As stated in the ticket, this bug can't be reproduced, and the bug source, Ed, hasn't responded with reproducible test in over a year. So, I've resolving this ticket due to un-reproducibility. Mark