mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:13:38 +03:00
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.
This commit is contained in:
parent
dc3e7df1c9
commit
1b24b89cca
8 changed files with 103 additions and 5 deletions
|
|
@ -1436,6 +1436,9 @@ typedef enum {
|
|||
/* FNMATCH_FUNCTION user pointer */
|
||||
CINIT(FNMATCH_DATA, OBJECTPOINT, 202),
|
||||
|
||||
/* send linked-list of name:port:address sets */
|
||||
CINIT(RESOLVE, OBJECTPOINT, 203),
|
||||
|
||||
CURLOPT_LASTENTRY /* the last unused */
|
||||
} CURLoption;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue