Re: www::mechanize question



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.


.



Relevant Pages

  • Re: who wants a crack at this
    ... (and IIRC my Javascript) all ... non-alphabetic characters are effectively converted to 'A'. ... word "hash". ... are interested only in the probability of accidental collisions, ...
    (sci.crypt)
  • Re: Secret Variable
    ... and a shared password before submitting form to external web ... but this is JavaScript and not server-side scripting language. ... Calculate the hash server-side after the form is submitted. ...
    (comp.lang.javascript)
  • Re: [PHP] GET doesnt work as POST
    ... technically legal in the HTTP standard, but it can happen in practice, ... IIRC.) ... Having GET data included with a POST request, ... If your *JAVASCRIPT* does not do that correctly, then, really, we ...
    (php.general)
  • Re: Complex Theoretical One Way Hash Question
    ... I've contrusted a 100% JavaScript solution to this. ... and over top the image the SHA-256 hash of the image. ... is an MD5 of the modified image including the readable MD5. ... image (I don't mean a JPEG tag, I mean literally on the image canvas ...
    (sci.crypt)
  • Re: who wants a crack at this
    ... > cryptography enough to crack it without far more thought than what ... Do a google group search on "reversing hash". ... about this particular hash function used in javascript page protection, ...
    (sci.crypt)