in reply to Running JavaScript in perl by proxy

If you want to run code in a browser (which you will need to do the XMLHttp requests) you have several choices:

Win32::IE::Mechanize and Mozilla::Mechanize are WWW::Mechanize re-implementations based on Explorer and Mozilla. I don't know much about Win32, but Mozilla::Mechanize is quite hard to install, since it has tons of dependencies.

An alternative are the Selenium modules. Those should be platform and browser independent.

  • Comment on Re: Running JavaScript in perl by proxy

Replies are listed 'Best First'.
Re^2: Running JavaScript in perl by proxy
by BaldPenguin (Friar) on May 08, 2007 at 19:52 UTC
    From what I have been told and seen to date, Mechanize and it's derivatives do not process the JavaScript within the page. Is that assessment incorrect?

    It may be possible to find the script nodes and process them with JavaScript, but that would get a little hairy when it came to the src includes inside a page.

    Don
    Everything I've learned in life can be summed up in a small perl script!