mirror of
https://github.com/curl/curl.git
synced 2024-12-21 06:50:10 +08:00
946ce5b61f
Adds CURLOPT_DISALLOW_USERNAME_IN_URL and --disallow-username-in-url. Makes libcurl reject URLs with a username in them. Closes #2340
35 lines
449 B
Plaintext
35 lines
449 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
--disallow-username-in-url
|
|
HTTP
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<features>
|
|
http
|
|
</features>
|
|
<server>
|
|
none
|
|
</server>
|
|
<name>
|
|
Verify usernames are not allowed in url
|
|
</name>
|
|
<command>
|
|
--disallow-username-in-url http://username:password@example.com/
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
# CURLE_LOGIN_DENIED is code 67
|
|
<errorcode>
|
|
67
|
|
</errorcode>
|
|
</verify>
|
|
</testcase>
|