in reply to Unable to open HTTPS url using proxy

Maybe some of the responses in Perl https parser might have a clue, or possibly just setting the allowed protocols first may help
$ua->protocols_allowed( ['http', 'https'] );

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh