in reply to WebMail authentication

Most of these things use SSL (secure socket layer) for the communication or at least for the authentication. This can be a hassle to setup and get working. But once you get it going, it works pretty much transparently to you. I looked at one of my LWP gizmos:

use LWP::UserAgent; use Crypt::SSLeay; use HTTP::Cookies;
I think you will need this Crypt::SSLeay module.

Replies are listed 'Best First'.
Re^2: WebMail authentication
by spazm (Monk) on Aug 02, 2009 at 23:23 UTC
      Yes. I looked again at the code I snipped from and I don't see any explicit things in it about SSleay. LWP and I presume Mechanize will "just know" about this module and use it if necessary. Of course posts, etc will go to a https URL instead of just http. You may need a cookie_jar also. And some consideration as to who you are going to "mimic". Here I am pretending to be something pretty stupid. This can affect what the server sends you.
      my $ua = LWP::UserAgent->new or die "Problem with the new UserAgent\n" +; $ua->cookie_jar(HTTP::Cookies->new); $ua->agent("Mozilla/4.76 [en] (Windows NT 5.0; U)"); print "And now I'm calling myself ", $ua->agent( ), "!\n";