________________________________ From: curl-library <curl-library-boun...@cool.haxx.se> on behalf of Stephan Mühlstrasser via curl-library <curl-library@cool.haxx.se> Sent: 13 July 2020 13:41 To: libcurl development <curl-library@cool.haxx.se> Cc: Stephan Mühlstrasser <s...@pdflib.com> Subject: URL validation
> when using curl's URL functions, is it possible to validate the URL? > ... > While the first URL is valid, I consider the second and third one > invalid. But curl_url_set() returns CURLUE_OK for them. Is this expected? Curl only tries to split the given URL into parts (like protocol, path, etc...) it does not proof or decode the URL otherwise (although you can tell it do encode on set and decode on get)
------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html