CURLOPT_DISALLOW_USERNAME_IN_URL: is for CURLOPT_URL only

Closes #21890
This commit is contained in:
Daniel Stenberg 2026-06-07 14:48:50 +02:00
parent 7bb7b2c2a4
commit e2cb3cc78e
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -29,12 +29,14 @@ CURLcode curl_easy_setopt(CURL *handle, CURLOPT_DISALLOW_USERNAME_IN_URL,
# DESCRIPTION
A long parameter set to 1 tells the library to not allow URLs that include a
username.
A long parameter set to 1 tells the library to not allow URLs set with
CURLOPT_URL(3) that include a username.
This is the equivalent to the *CURLU_DISALLOW_USER* flag for the
curl_url_set(3) function.
Note that this option does not affect URLs set with CURLOPT_CURLU(3).
# DEFAULT
0 (disabled)