Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to trick the page into thinking I have javascript enabled via the mech constructor? I was thinking maybe I need to modify the headers before making the POST for instance:You cannot use the website without having JavaScript enabled on your w +eb browser. Please re-enable JavaScript and refresh this page.
$mech->add_header( 'Accept' => 'application/json, text/javascript, */* +' );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Enabling javascript in Mechanize?
by Corion (Patriarch) on Sep 08, 2010 at 13:26 UTC | |
|
Re: Enabling javascript in Mechanize?
by talexb (Chancellor) on Sep 08, 2010 at 14:21 UTC |