http://www.perlmonks.org?node_id=957713


in reply to Using Mechanize With Odd Query String

Your form key/value pairs need to be specified as Content:
$browser->post("$BASEURL?use-a", { 'target' => '195' } ); # now a hash +ref

The documentation for ->post mentions $field_name which may be confused as being a form key name. The $field_name => $value pairs actually get pushed onto the Header instead of the Content.

Replies are listed 'Best First'.
Re^2: Using Mechanize With Odd Query String
by Anonymous Monk on Mar 06, 2012 at 22:12 UTC
    Thank you. I did not understand the documentation even when I re-read it. Thank you for explaining it succinctly.