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

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

Replies are listed 'Best First'.
Re^5: Mechanize not working with HTTPS
by Khen1950fx (Canon) on Jun 20, 2012 at 03:14 UTC

      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'
        Getting this separate error on the Get: Can't connect to IPADDRESS:443 LWP::Protocol::https::Socket: SSL connect attempt failed with unknown error error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol at /usr/lib/perl5/site_perl/5.8.8/LWP/Protocol/http.pm
Re^5: Mechanize not working with HTTPS
by Anonymous Monk on Jun 20, 2012 at 02:46 UTC

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

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