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: 54233
Status: resolved
Priority: 0/
Queue: WWW-Mechanize

People
Owner: Nobody in particular
Requestors: ilugid [...] gmail.com
Cc:
AdminCc:

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



Subject: HTML::Form does not work well with Mechanize response objects
The below code tends to work with response objects from LWP::Useragent, however for WWW::Mechanize response object, it simply throws an error "HTML::Form::parse: No $base_uri provided at ./test.pl line 49" --------------Sample-Code------------------------------- my $forms = HTML::Form->parse( "$formresponse" ); my $value = $forms->find_input('SetShift')->value; print $value; \\-----------Sample-Code-----------------------------\\ Moreover "$forms->attr( 'SetShift' )" does not seem to be a shortcut to saying "$forms->find_input('SetShift')->value" as mentioned in the documentation.
migrated queue: libwww-perl -> WWW-Mechanize