1curl_easy_option_by_name(3)     libcurl Manual     curl_easy_option_by_name(3)
2
3
4

NAME

6       curl_easy_option_by_name - find an easy setopt option by name
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       const struct curl_easyoption *curl_easy_option_by_name(const char *name);
12

DESCRIPTION

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

EXAMPLE

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

AVAILABILITY

29       This function was added in libcurl 7.73.0
30

RETURN VALUE

32       A pointer to the curl_easyoption struct for the option or NULL.
33

SEE ALSO

35       curl_easy_option_next(3),curl_easy_option_by_id(3),       curl_easy_se‐
36       topt(3),
37
38
39
40libcurl 7.85.0                   May 17, 2022      curl_easy_option_by_name(3)
Impressum