1curl_easy_option_by_name(3) libcurl Manual curl_easy_option_by_name(3)
2
3
4
6 curl_easy_option_by_name - find an easy setopt option by name
7
9 #include <curl/curl.h>
10
11 const struct curl_easyoption *curl_easy_option_by_name(const char *name);
12
14 Given a name, this function returns a pointer to the curl_easyoption
15 struct, holding information about the curl_easy_setopt(3) option using
16 that name. The name should be specified without the "CURLOPT_" prefix
17 and the name comparison is made case insensitive.
18
19 If libcurl has no option with the given name, this function returns
20 NULL.
21
23 const struct curl_easyoption *opt = curl_easy_option_by_name("URL");
24 if(opt) {
25 printf("This option wants CURLoption %x\n", (int)opt->id);
26 }
27
29 This function was added in libcurl 7.73.0
30
32 A pointer to the curl_easyoption struct for the option or NULL.
33
35 curl_easy_option_next(3),curl_easy_option_by_id(3), curl_easy_se‐
36 topt(3),
37
38
39
40libcurl 8.0.1 January 02, 2023 curl_easy_option_by_name(3)