CURLUPART_URLpart in the handle:
CURLUE_OKand the different URL components are held in the handle. It means that the URL was valid as far as libcurl concerns.
curl_url_set()accept a non-supported scheme. If not set, the only acceptable schemes are for the protocols libcurl knows and have built-in support for.
CURLU_GUESS_SCHEMEoption if both are set.
CURLU_DEFAULT_SCHEMEoption which takes precedence if both are set.
+. When spaces are allowed, they are still not allowed in the scheme. When space is used and allowed in a URL, it will be stored as-is unless
CURLU_URLENCODEis also set, which then makes libcurl URL-encode the space before stored. This affects how the URL will be constructed when
curl_url_get()is subsequently used to extract the full URL or individual parts.