Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: WWW::Mechanize select from dropdown

by davidrw (Prior)
on Apr 20, 2007 at 23:27 UTC ( #611240=note: print w/ replies, xml ) Need Help??


in reply to WWW::Mechanize select from dropdown

not sure what the issue is, but maybe try WWW::Mechanize's submit_form method instead?

my $mech = WWW::Mechanize->new(); $mech->get("https://www.site.com/forums/cs/dispatch.cgi/_admin/diskUsa +geForm"); $mech->submit_form( form_name => 'CFO', fields => { pforumClass => '__all__', tforumClass => '__all__', uforumClass => '__all__', }, );
Also maybe see if the output from mech-dump gives you any extra information ...

And also do a die $mech->content; after the ->get() to make sure it's really the page you expect it is ...


Comment on Re: WWW::Mechanize select from dropdown
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2015-07-31 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls