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

Replies are listed 'Best First'.
Re^4: Mechanize not working with HTTPS
by omegaweaponZ (Beadle) 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

        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'

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

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