![]() |
![]()
| ![]() |
![]()
NAMECURLOPT_IPRESOLVE - IP protocol version to use SYNOPSIS#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_IPRESOLVE, long resolve); DESCRIPTIONAllows an application to select what kind of IP addresses to use when establishing a connection or choosing one from the connection pool. This is interesting when using hostnames that resolve to more than one IP family. If the URL provided for a transfer contains a numerical IP version as a host name, this option does not override or prohibit libcurl from using that IP version. Available values for this option are:
DEFAULTCURL_IPRESOLVE_WHATEVER PROTOCOLSThis functionality affects all supported protocols EXAMPLEint main(void) { AVAILABILITYAdded in curl 7.10.8 RETURN VALUEcurl_easy_setopt(3) returns a CURLcode indicating success or error. CURLE_OK (0) means everything was OK, non-zero means an error occurred, see libcurl-errors(3). SEE ALSOCURLOPT_HTTP_VERSION(3), CURLOPT_RESOLVE(3), CURLOPT_SSLVERSION(3)
|