CURLOPT_RESOLVE: added
authorDaniel Stenberg <daniel@haxx.se>
Fri, 5 Nov 2010 21:31:40 +0000 (22:31 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 8 Nov 2010 07:56:21 +0000 (08:56 +0100)
commit1b24b89cca3c06e36b69969af8edeeaca659515b
treebaa8fdb1a290d28e7bf7ca54ca8fd482dc98c3dc
parentdc3e7df1c99c2ee9dae06453adbb94fe9584bf75
CURLOPT_RESOLVE: added

CURLOPT_RESOLVE is a new option that sends along a curl_slist with
name:port:address sets that will populate the DNS cache with entries so
that request can be "fooled" to use another host than what otherwise
would've been used. Previously we've encouraged the use of Host: for
that when dealing with HTTP, but this new feature has the added bonus
that it allows the name from the URL to be used for TLS SNI and server
certificate name checks as well.

This is a first change. Surely more will follow to make it decent.
include/curl/curl.h
lib/curl_addrinfo.c
lib/curl_addrinfo.h
lib/hostip.c
lib/transfer.c
lib/url.c
lib/urldata.h
src/main.c