Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: using WWW::Mechanize with HTTPS

by moot (Chaplain)
on Apr 30, 2005 at 03:22 UTC ( [id://452792] : note . print w/replies, xml ) Need Help??


in reply to using WWW::Mechanize with HTTPS

All you need is to have Crypt::SSLeay installed:
$ perl -MWWW::Mechanize -e '$w = WWW::Mechanize->new; $w->get("https:/ +/mail.yahoo.com"); print $w->uri; print $w->content'|head https://mail.yahoo.com <html> <head> <META content="index,follow" name="robots"> <META content="Yahoo! Mail Free reliable easy SpamGuard antivirus stor +age" name="keywords"> <META content="Take a closer look at Yahoo! Mail. Get these great fea +tures: Powerful protection against spam and viruses, 250MB of email s +torage, Message size up to 10MB, and Mail anywhere there's a web conn +ection" name="description"> <link type="text/css" rel="stylesheet" href="https://sec.yimg.com/i/re +g/mail_style.css"> <title>Yahoo! Mail - The best web-based email!</title> <style type="text/css">
WWW::Mechanize lives on top of LWP::UserAgent, which only requires that Crypt::SSLeay be installed for it to work automagically.