in reply to WWW::Mechanize submission problem

Well, I know what I did to fix my problem, but yet I *don't* know what I did to fix my problem.

Just today I remembered the first time I tried to log on to Yahoo and retrieve HTML files. I remembered trying to install WWW::Mechanize - I think - and getting an error message at some point telling me that I needed Crypt::SSLeay.

So today I got on to CPAN and installed Crypt::SSLeay and re-ran my script, and it works now.

So I now have one more question, and one more comment.

My comment is that I still don't know why $mech->field() had to be replaced with $mech->set_visible() when running on the Linux box.

My question is, will someone explain to me why I needed Crypt::SSleay in order to get my script to work?

Thanks to everyone for their comments and assistance.

Replies are listed 'Best First'.
Re^2: WWW::Mechanize submission problem
by helphand (Pilgrim) on Feb 06, 2006 at 05:37 UTC
    My question is, will someone explain to me why I needed Crypt::SSleay in order to get my script to work?

    Easy, go to the url in your script;

    http://login.yahoo.com/config/login?.done=http://fantas +ysports.yahoo.com&.src=spt&.intl=us

    Note the tiny note under the login box, new submits over ssl. That means you need ssl encryption for the submit, which Crypt::SSleay provides.

    Scott