It seems that restc-cpp doesn't support HTPPS connections via a proxy. It should send a HTTP/1.1 CONNECT request to the proxy to request a tunnel.