From: Daniel Stenberg Date: Mon, 27 Feb 2023 18:43:35 +0000 (+0100) Subject: libcurl-errors.3: add the CURLHcode errors from curl_easy_header.3 X-Git-Tag: curl-8_0_0~130 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=26c6d822bc29245154281eca1076da0b39dc6b4c;p=thirdparty%2Fcurl.git libcurl-errors.3: add the CURLHcode errors from curl_easy_header.3 Closes #10629 --- diff --git a/docs/libcurl/curl_easy_header.3 b/docs/libcurl/curl_easy_header.3 index 9b94b72596..47e8388ec9 100644 --- a/docs/libcurl/curl_easy_header.3 +++ b/docs/libcurl/curl_easy_header.3 @@ -134,20 +134,7 @@ CURLHcode h = Added in 7.83.0. Officially supported since 7.84.0. .SH RETURN VALUE This function returns a CURLHcode indicating success or error. -.IP "CURLHE_BADINDEX (1)" -There is no header with the requested index. -.IP "CURLHE_MISSING (2)" -No such header exists. -.IP "CURLHE_NOHEADERS (3)" -No headers at all have been recorded. -.IP "CURLHE_NOREQUEST (4)" -There was no such request number. -.IP "CURLHE_OUT_OF_MEMORY (5)" -Out of resources -.IP "CURLHE_BAD_ARGUMENT (6)" -One or more of the given arguments are bad. -.IP "CURLHE_NOT_BUILT_IN (7)" -HTTP or the header API has been disabled in the build. .SH "SEE ALSO" .BR curl_easy_nextheader "(3), " curl_easy_perform "(3), " -.BR CURLOPT_HEADERFUNCTION "(3), " CURLINFO_CONTENT_TYPE "(3) " +.BR CURLOPT_HEADERFUNCTION "(3), " CURLINFO_CONTENT_TYPE "(3), " +.BR libcurl-errors "(3) " diff --git a/docs/libcurl/libcurl-errors.3 b/docs/libcurl/libcurl-errors.3 index 42a01ddfc0..6948bbb268 100644 --- a/docs/libcurl/libcurl-errors.3 +++ b/docs/libcurl/libcurl-errors.3 @@ -412,6 +412,23 @@ The scheme part of the URL contained bad or invalid characters. The URL contained an invalid number of slashes. .IP "CURLUE_BAD_USER (29)" The user part of the URL contained bad or invalid characters. +.SH "CURLHcode" +The header interface returns a \fICURLHcode\fP to indicate when an error has +occurred. +.IP "CURLHE_BADINDEX (1)" +There is no header with the requested index. +.IP "CURLHE_MISSING (2)" +No such header exists. +.IP "CURLHE_NOHEADERS (3)" +No headers at all have been recorded. +.IP "CURLHE_NOREQUEST (4)" +There was no such request number. +.IP "CURLHE_OUT_OF_MEMORY (5)" +Out of resources +.IP "CURLHE_BAD_ARGUMENT (6)" +One or more of the given arguments are bad. +.IP "CURLHE_NOT_BUILT_IN (7)" +HTTP support or the header API has been disabled in the build. .SH "SEE ALSO" .BR curl_easy_strerror "(3), " curl_multi_strerror "(3), " .BR curl_share_strerror "(3), " curl_url_strerror "(3), "