Re: Submitting a form with Mechanize -- Can't find form

2015-01-31 Thread Andrew Solomon
Before calling $mech->submit_form it might be helpful to do things like: $mech->dump_text; $mech->dump_forms; $mech->dump_headers; to see whether $mech really is getting the page you think it is. Andrew On Sat, Jan 31, 2015 at 2:04 PM, Mike wrote: > Hey everyone, I'm trying to submit a form wi

Submitting a form with Mechanize -- Can't find form

2015-01-31 Thread Mike
Hey everyone, I'm trying to submit a form with WWW::Mechanize to post a new thread on a forum from the command line. The forum also requires an image to be uploaded with it. Anyway...here is my snippet: $mech->submit_form( form_name => 'post', fields => { bo