curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: About IP resolve problem when using HTTP proxy

From: Daniel Stenberg <daniel_at_haxx.se>
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
> https://192.168.1.100/ 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:

   https://github.com/curl/curl/issues/2346

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

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2018-03-05