1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-14 05:25:06 -05:00
curl/tests/data/test2075
Björn Stenberg 946ce5b61f
option: disallow username in URL
Adds CURLOPT_DISALLOW_USERNAME_IN_URL and --disallow-username-in-url. Makes
libcurl reject URLs with a username in them.

Closes #2340
2018-05-31 11:27:16 +02:00

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>