flamey has asked for the wisdom of the Perl Monks concerning the following question:
does not work (the returned page is as if fields/params are wrong). however, w/ URI object I get my report:my $reportLink = WWW::Mechanize::Link->new( { url => 'http://www.website.com/report/runreport/30', attr => ([ 'fields[xxx.name]' => 'a name', 'fields[xxx.version]' => '5.34' ]) } ); $mech->put($reportLink);
this is probably something silly i'm as a noob doing wrong, where's a mistake? TIA. P.S. it's weird, but I can't find any examples of people using WWW::Mechanize::Link :-/my $reportLink = URI->new('http://www.website.com/report/runreport/30 +'); $reportLink->query_form([ 'fields[xxx.name]' => 'a name', 'fields[xxx.version]' => '5.34' ]); $mech->put($reportLink);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize::Link - how to?
by Corion (Patriarch) on Feb 16, 2009 at 15:59 UTC | |
by flamey (Scribe) on Feb 16, 2009 at 16:12 UTC | |
by Corion (Patriarch) on Feb 16, 2009 at 16:21 UTC | |
by flamey (Scribe) on Feb 16, 2009 at 17:15 UTC | |
|
Re: WWW::Mechanize::Link - how to?
by poolpi (Hermit) on Feb 17, 2009 at 08:03 UTC | |
by flamey (Scribe) on Feb 17, 2009 at 10:18 UTC |