in reply to using and debuging www Mechanize

You can give the name of the text boxes instead of

  Username    => 'someone',Password    => 'pass'

For example if you have a text box like

<input id="USER_NAME" type="text" name="USER_NAME"/>

then you can to submit as follows

my $response=$mech->post($url,[ 'USER_NAME' => "testing"]); | \ / name of the text box

Update: Changed "have and need" to can

--Lakshmanan G.

The great pleasure in my life is doing what people say you cannot do.


Replies are listed 'Best First'.
Re^2: using and debuging www Mechanize
by Anonymous Monk on Jun 08, 2009 at 12:45 UTC
    You have to give the name of the text box.

    No, form_number is perfectly acceptable (see WWW::Mechanize).

    then you need to submit as follows

    Need? No. You may use post , or simply continue using submit_form.