Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Submitting a second form

by Khen1950fx (Canon)
on Jul 21, 2013 at 19:19 UTC ( #1045528=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Submitting a second form
in thread Submitting a second form

Actually, it's not an error. There is no form with the requested fields. Is the url correct? Any syntax problems? Try this:

#!/usr/bin/perl use strict; use warnings; use WWW::Mechanize; my $url = 'http://www.example.com/cgi-bin/testcode.tcl'; my $mech = WWW::Mechanize->new( autocheck => 1 ); $mech->get($url); my(%fields) = ( modem => '1122.3344.5566', ip_select => '1.2.3.4', ); my $result = $mech->submit_form( with_fields => %fields, ); print $result;


Comment on Re^3: Submitting a second form
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1045528]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2014-09-22 18:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls