]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CURLOPT_RESOLVE: documented
authorDaniel Stenberg <daniel@haxx.se>
Mon, 8 Nov 2010 08:53:35 +0000 (09:53 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 8 Nov 2010 08:53:35 +0000 (09:53 +0100)
docs/libcurl/curl_easy_setopt.3
docs/libcurl/symbols-in-versions

index 9f1e1a9ab73de2aced48a065a468a0708a48884d..d005b3ffc9df968d993db35bf551a654ee4b20c8 100644 (file)
@@ -1774,6 +1774,29 @@ Require SSL for the control connection or fail with \fICURLE_USE_SSL_FAILED\fP.
 .IP CURLUSESSL_ALL
 Require SSL for all communication or fail with \fICURLE_USE_SSL_FAILED\fP.
 .RE
+.IP CURLOPT_RESOLVE
+Pass a pointer to a linked list of strings with host name resolve information
+to use for requests with this handle. The linked list should be a fully valid
+list of \fBstruct curl_slist\fP structs properly filled in. Use
+\fIcurl_slist_append(3)\fP to create the list and \fIcurl_slist_free_all(3)\fP
+to clean up an entire list.
+
+Each single name resolve string should be written using the format
+HOST:PORT:ADDRESS where HOST is the name libcurl will try to resolve, PORT is
+the port number of the service where libcurl wants to connect to the HOST and
+ADDRESS is the numerical IP address. If libcurl is built to support IPv6,
+ADDRESS can of course be either IPv4 or IPv6 style addressing.
+
+This option effectively pre-populates the DNS cache with entries for the
+host+port pair so redirects and everything that operations against the
+HOST+PORT will instead use your provided ADDRESS.
+
+You can remove names from the DNS cache again, to stop providing these fake
+resolves, by including a string in the linked list that uses the format
+\&"-HOST:PORT". The host name must be prefixed with a dash, and the host name
+and port number must exactly match what was already added previously.
+
+(Added in 7.12.3)
 .SH SSL and SECURITY OPTIONS
 .IP CURLOPT_SSLCERT
 Pass a pointer to a zero terminated string as parameter. The string should be
index ada249efb92ed551a6f03e823a041704782ff11a..1884d3d33b6a5f9af5c9c07946dd25dfdc3fcca6 100644 (file)
@@ -428,6 +428,7 @@ CURLOPT_REDIR_PROTOCOLS         7.19.4
 CURLOPT_REFERER                 7.1
 CURLOPT_RESUME_FROM             7.1
 CURLOPT_RESUME_FROM_LARGE       7.11.0
+CURLOPT_RESOLVE                 7.21.3
 CURLOPT_RTSPHEADER              7.20.0
 CURLOPT_RTSP_CLIENT_CSEQ        7.20.0
 CURLOPT_RTSP_REQUEST            7.20.0