cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Patch: OpenSSL Server Name Indication value should match custom Host header

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 5 Nov 2010 22:59:36 +0100 (CET)

On Fri, 5 Nov 2010, Daniel Stenberg wrote:

> I'll make a first patch to describe what I mean and show you in a while.

Okay, attached here is a first draft of what I had in mind. It seems to work
to add entries. I tried with a command line like this:

$ ./src/curl --resolve www.haxx.se:80:127.0.0.1 www.haxx.se -v

Which then makes it report...

* Added www.haxx.se:80:127.0.0.1 to DNS cache
* About to connect() to www.haxx.se port 80 (#0)
* Trying 127.0.0.1... % Total % Received % Xferd Average Speed Time
Time Time Current
                                  Dload Upload Total Spent Left Speed
   0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0connected
* Connected to www.haxx.se (127.0.0.1) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.21.3-DEV (i686-pc-linux-gnu) libcurl/7.21.3-DEV
OpenSSL/0.9.8o zlib/1.2.3.4 c-ares/1.7.4-DEV libidn/1.18 libssh2/1.2.8_DEV
librtmp/2.2e
> Host: www.haxx.se
> Accept: */*

-- 
  / daniel.haxx.se


-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2010-11-05