in reply to Checkboxes with the same name
I looked at the source of HTTP::Request::Form verified that it is indeed a bug in the module. It uses $fieldvals{$name} = $value; to set the value, clobbering any existing value for that name.
HTTP::Request::Common uses the query_form method of URI, whose documentation gives the following example:
$uri->query_form(foo => 1, foo => 2); $uri->query_form(foo => [1, 2]); $uri->query_form([ foo => 1, foo => 2 ]); $uri->query_form([ foo => [1, 2] ]); $uri->query_form({ foo => [1, 2] });
so:
$ua->request(POST 'http://somewhere/foo', [ editions => [qw( D A H )], other_input => 'its value', ]);
should do the trick
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Checkboxes with the same name
by seaver (Pilgrim) on Sep 27, 2004 at 15:44 UTC | |
by ikegami (Patriarch) on Sep 27, 2004 at 16:09 UTC | |
by seaver (Pilgrim) on Sep 27, 2004 at 18:14 UTC |