summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authori-ky <gl.ivanovsky@gmail.com>2021-09-27 08:22:54 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-09-27 08:28:46 +0200
commit3363eeb26298b9d30fc5ec29101e5dd205d04db9 (patch)
tree5546b8dc873a7e918d651485ed735dbce6f69d62 /packages
parentf0b8d1c5f646506d5c1fbf73edfbed900aa016e4 (diff)
downloadcurl-3363eeb26298b9d30fc5ec29101e5dd205d04db9.tar.gz
urlapi: add curl_url_strerror()
Add curl_url_strerror() to convert CURLUcode into readable string and facilitate easier troubleshooting in programs using URL API. Extend CURLUcode with CURLU_LAST for iteration in unit tests. Update man pages with a mention of new function. Update example code and tests with new functionality where it fits. Closes #7605
Diffstat (limited to 'packages')
-rw-r--r--packages/OS400/curl.inc.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/OS400/curl.inc.in b/packages/OS400/curl.inc.in
index 018cabad2..94b2deba9 100644
--- a/packages/OS400/curl.inc.in
+++ b/packages/OS400/curl.inc.in
@@ -2913,6 +2913,10 @@
d part * value options(*string)
d flags 10u 0 value
*
+ d curl_url_strerror...
+ d pr * extproc('curl_url_strerror') const char *
+ d code value like(CURLUcode)
+ *
d curl_easy_option_by_name...
d pr * extproc('curl_easy_option_by_name') curl_easyoption *
d name * value option(*string)