Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2014-12-27 20:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls