in reply to HTTPS WWW::Mechanize Form Problems

few things
1. Check if there's javascript in the page. if that's the case, forget mechanize. it might not work
2. if using IE, use win32::IEAutomation, might be easier to handle such pages
3. Instead of sleep(5) check the function for Win32::IEAutomation to wait for complete loading of the page
Check this Win32:: How to tell when Default browser url has loaded This will actually wait till the page loads if there is a lag..this works with IEautomation only..
Raghu

Replies are listed 'Best First'.
Re^2: HTTPS WWW::Mechanize Form Problems
by LE500 (Initiate) on Jan 22, 2009 at 18:47 UTC

    No Java to worry about. I'm using Linux so no IE is being used.

    Does anyone know any tips and tricks on how to install modules that just won't work? Is PerlMonks a good place to ask this question, or is this something I should bring up at CPAN?

      If you're getting a 401 error for a https URL, you can request https URLs. If you're getting a 500 error, for a https URL, you likely don't have Crypt::SSLeay or IO::SSLeay installed.

      If you're not on Windows, I recommend installing the prerequisite libraries (libeay or whatever it is called) via the package manager of your OS. Then install the Perl module.

        I've installed Crypt::SSLeay and IO::Socket::SSL through a package manager (and installed Net::SSLeay and OpenSSL as well), added Crypt and Socket to my script and I'm still being rejected when I try to go through a link (and it still works when I just get($url), until I try to go through by link, then that stops working too). This is so very frustrating.