Here is a debug output of an example where ua will NEVER complete the 
request (say dumper($tx) is never executed)

(https with port 80 is only there to produce the error)

my $ua = Mojo::UserAgent->new;
$ua->proxy->http("http://$proxy";)->https("http://$proxy";);

my $tx = $ua->get('https://HOST:80/');
say dumper($tx);

-- Blocking request (https://HOST:80/)
-- Connect (https:HOST:80)
-- Client >>> Server (https://HOST:80/)
CONNECT HOST:80 HTTP/1.1
User-Agent: Mojolicious (Perl)
Connection: keep-alive
Accept-Encoding: gzip
Content-Length: 0
Host: HOST:80


-- Client <<< Server (https://HOST:80/)
HTTP/1.0 200 Connection established


Mojo::Reactor::EV: Read failed: Mojo::UserAgent: SSL connect attempt failed 
because of handshake problems

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to