Re: www::mechanize question
- From: mumia.w.18.spam+nospam@xxxxxxxxxxxxx (Mumia W.)
- Date: Fri, 30 Mar 2007 15:18:35 -0500
On 03/30/2007 01:20 PM, Jason Roth wrote:
I'm using www::mechanize to submit a form to a website, and one of the
fields is disabled (and enabled by javascript on the page which
obviously isn't running). When I try to set a value for this field I
get a "no such field" error. How to I set a value for, and enable,
disabled form fields?
Thanks,
Jason
You might have to use a lower-level interface to do this. WWW::Mechanize is built upon LWP::UserAgent, so the simple way would be to just use LWP::UserAgent to create and send the POST request.
A better but more complicated way to do it would be to use WWW::Mechanize to get the initial form. Then you'd extract the form from the WWW::Mechanize object, assign the form names and values to a hash, add your desired field to the hash, and send the POST request using LWP::UserAgent.
Good luck.
.
- References:
- www::mechanize question
- From: Jason Roth
- www::mechanize question
- Prev by Date: Re: Regexp non-alphanumerics to spaces
- Next by Date: Re: Regexp non-alphanumerics to spaces
- Previous by thread: Re: www::mechanize question
- Next by thread: Re: www::mechanize question
- Index(es):
Relevant Pages
|