1curl_easy_option_by_id(3) libcurl Manual curl_easy_option_by_id(3)
2
3
4
6 curl_easy_option_by_id - find an easy setopt option by id
7
9 #include <curl/curl.h>
10
11 const struct curl_easyoption *curl_easy_option_by_id(CURLoption id);
12
14 Given a CURLoption id, this function returns a pointer to the
15 curl_easyoption struct, holding information about the curl_easy_se‐
16 topt(3) option using that id. The option id is the CURLOPT_ prefix ones
17 provided in the standard curl/curl.h header file. This function will
18 return the non-aliases version for the cases where there is an alias
19 function as well.
20
21 If libcurl has no option with the given id, this function returns NULL.
22
24 This function was added in libcurl 7.73.0
25
27 A pointer to the curl_easyoption struct for the option or NULL.
28
30 curl_easy_option_by_name(3),curl_easy_option_next(3), curl_easy_se‐
31 topt(3),
32
33
34
35libcurl 7.76.1 November 04, 2020 curl_easy_option_by_id(3)