Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://452792]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (7)
As of 2024-04-23 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found