curl / Mailing Lists / curl-library / Single Mail


Re: About IP resolve problem when using HTTP proxy

From: Daniel Stenberg <>
Date: Mon, 5 Mar 2018 00:11:41 +0100 (CET)

On Wed, 28 Feb 2018, Lessandro Mariano wrote:

> I'm using CURLOPT_RESOLVE to provide a hostname for common name validation
> while connecting to local IPs via HTTPS (e.g. I want to connect to
> and expect/validate the common name "abcdef123456").
> This works fine, except when I setup a proxy, because CURL will send a
> CONNECT abcdef123456:443 HTTP/1.1 to the proxy, which obviously can't
> resolve that hostname.

I responded to the issue you filed for this on github:

This is bascially working as intended since curl doesn't resolve any host
names at all when you use a HTTP proxy...

Received on 2018-03-05