http://www.perlmonks.org?node_id=909980


in reply to Check https connection open

Have you tried leaving the scheme off of the URI? Something like '//myservice....'? That's how I've done it before. If you access the page with http, you get http. If you access the page with https, you get https.