Unable to establish HTTPS tunnel through proxy.
[Condition of type SIMPLE-ERROR]
Specifying the port also doesn’t work, but in a different way:
(drakma:http-request "https://github.com/404" :real-host '("192.30.255.112" 443) :redirect nil)
No status line - probably network error.
[Condition of type DRAKMA::DRAKMA-SIMPLE-ERROR]
The
:real-host
feature is broken for HTTPS. Evaluating:Produces:
Specifying the port also doesn’t work, but in a different way:
There are two bugs.
proxying-https-p
is truthy whenreal-host
is specified, becausereal-host
is copied toproxy
. This causes Drakma issue aCONNECT
verb the remote server doesn’t honor.The fix for the first case is to inhibit setting
proxying-https-p
ifreal-host
is specified.However, this still breaks in the case where the
real-host
doesn’t include a port, because the proxy port is always set to 80 when omitted, and it’s already been set fromreal-host
.The second fix is to ignore
proxy
and takeport
from the URI whenreal-host
is specified.