Beefy Boxes and Bandwidth Generously Provided by pair Networks kudra
No such thing as a small change
 
PerlMonks  

Re^3: Mechanize not working with HTTPS

by Anonymous Monk
on Jun 20, 2012 at 02:29 UTC ( #977196=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Mechanize not working with HTTPS
in thread Mechanize not working with HTTPS

Yeah I've added those packages and tried other flavors of having them grab the https url, but I keep getting the same issue when using mechanize.

"bad hostname" is a DNS issue, nothing really you can do from perl

Try  lwp-request -UuSsEed https://google.com/ if that doesn't work, nothing can work


Comment on Re^3: Mechanize not working with HTTPS
Download Code
Re^4: Mechanize not working with HTTPS
by omegaweaponZ (Acolyte) on Jun 20, 2012 at 02:34 UTC
    Understood, but the original URL was not using https, it was only recently changed. Previously, it worked fine, so I don't think its a dns issue. Also if I just use the IP address instead of the hostname it just says "can't connect" instead of the full bad hostname. I think its more to do with mechanize not working correctly with https, and I was wondering if there were some tips and tricks people have used to get to work

      ...I think its more to do with mechanize not working correctly with https ...

      :) :) you're not qualified to blame your tools, sorry (:(:

        Yes, that's likely the culprit.

        WWW::Mechanize is a wrapper for LWP::UserAgent. As of version 6 of LWP (released quite recently), HTTPS support (in LWP::Protocol::https) was spun out into a separate distribution, so needs to be installed separately.

        perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2013-05-25 21:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (521 votes), past polls