On Tue, 11 Aug 2009, Gisle Aas wrote:
print $f->click->as_string, "\n";
print $f->make_request->as_string, "\n";
That's cheating :). Leave out the first click() and check what
make_request() by itself gets you.
Looks like the preceding click() has some mysterious side effect on
the subsequent make_request().
-- Mike
Mike Schilli
lib...@perlmeister.com
On Tue, Aug 11, 2009 at 08:24, <lib...@perlmeister.com> wrote:
On Mon, 10 Aug 2009, Gisle Aas wrote:
HTML::Form supported both these by calling either ->make_request or
->click method. If all modern browsers agree that the button value
should always be passed we should change as well.
Interesting, both click() and make_request() yield the same result
here, excluding the name/value of the submit button in both cases:
It does not here:
use HTML::Form;
my $f = HTML::Form->parse(<<'EOT', "http://localhost/");
<form>
<input type=submit value="Upload it!" name=n>
<input type=text name=t value="1">
</form>
EOT
This prints:
GET http://localhost/?n=Upload+it!&t=1
GET http://localhost/?t=1