mirror of
https://github.com/curl/curl.git
synced 2026-08-26 13:03:32 +03:00
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
This commit is contained in:
parent
f0b8d1c5f6
commit
3363eeb262
25 changed files with 233 additions and 72 deletions
|
|
@ -35,9 +35,9 @@ Set excessive URL lengths
|
|||
<stdout>
|
||||
CURLOPT_URL 10000000 bytes URL == 43
|
||||
CURLOPT_POSTFIELDS 10000000 bytes data == 0
|
||||
CURLUPART_URL 10000000 bytes URL == 3
|
||||
CURLUPART_SCHEME 10000000 bytes scheme == 3
|
||||
CURLUPART_USER 10000000 bytes user == 3
|
||||
CURLUPART_URL 10000000 bytes URL == 3 (A malformed input was passed to a URL API function)
|
||||
CURLUPART_SCHEME 10000000 bytes scheme == 3 (A malformed input was passed to a URL API function)
|
||||
CURLUPART_USER 10000000 bytes user == 3 (A malformed input was passed to a URL API function)
|
||||
</stdout>
|
||||
</verify>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue