1CURLOPT_ADDRESS_SCOPE(3)   curl_easy_setopt options   CURLOPT_ADDRESS_SCOPE(3)
2
3
4

NAME

6       CURLOPT_ADDRESS_SCOPE - set scope for local IPv6 addresses
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLcode  curl_easy_setopt(CURL  *handle,  CURLOPT_ADDRESS_SCOPE,  long
12       scope);
13

DESCRIPTION

15       Pass a long specifying the scope_id value to  use  when  connecting  to
16       IPv6 link-local or site-local addresses.
17

DEFAULT

19       0
20

PROTOCOLS

22       All, when using IPv6
23

EXAMPLE

25       CURL *curl = curl_easy_init();
26       if(curl) {
27         CURLcode ret;
28         curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
29         /* 0x2 link-local
30            0x5 site-local
31            0x8 organization-local
32            0xe global ... */
33         curl_easy_setopt(curl, CURLOPT_ADDRESS_SCOPE, 0xEL);
34         ret = curl_easy_perform(curl);
35         curl_easy_cleanup(curl);
36       }
37

AVAILABILITY

39       Added in 7.19.0
40

RETURN VALUE

42       Returns  CURLE_OK  if the option is supported, and CURLE_UNKNOWN_OPTION
43       if not.
44

SEE ALSO

46       CURLOPT_STDERR(3), CURLOPT_DEBUGFUNCTION(3),
47
48
49
50libcurl 7.61.1                   May 31, 2017         CURLOPT_ADDRESS_SCOPE(3)
Impressum