1curl_easy_strerror(3) libcurl Manual curl_easy_strerror(3)
2
3
4
6 curl_easy_strerror - return string describing error code
7
9 #include <curl/curl.h>
10
11 const char *curl_easy_strerror(CURLcode errornum);
12
14 The curl_easy_strerror(3) function returns a string describing the
15 CURLcode error code passed in the argument errornum.
16
17 Typically applications also appreciate CURLOPT_ERRORBUFFER(3) for more
18 specific error descriptions generated at run-time.
19
21 /* Perform the request, res will get the return code */
22 res = curl_easy_perform(curl);
23 /* Check for errors */
24 if(res != CURLE_OK)
25 fprintf(stderr, "curl_easy_perform() failed: %s\n",
26 curl_easy_strerror(res));
27
29 This function was added in libcurl 7.12.0
30
32 A pointer to a null-terminated string.
33
35 libcurl-errors(3), curl_multi_strerror(3), curl_share_strerror(3),
36 curl_url_strerror(3)
37
38
39
40libcurl 7.82.0 November 26, 2021 curl_easy_strerror(3)