mirror of
https://github.com/curl/curl.git
synced 2025-04-18 16:30:45 +08:00
Made the netrc parser return a more consistent set of error codes and error messages, and also return error properly if the .netrc file is missing. Add test 697 to verify error on missing netrc file. Fixes #16163 Reported-by: arlt on github Closes #16165
38 lines
427 B
Plaintext
38 lines
427 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
netrc
|
|
</keywords>
|
|
</info>
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
none
|
|
</server>
|
|
<features>
|
|
http
|
|
</features>
|
|
<name>
|
|
netrc with missing netrc file
|
|
</name>
|
|
<command>
|
|
--netrc --netrc-file %LOGDIR/netrc%TESTNUMBER http://user1@http.example/
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<errorcode>
|
|
26
|
|
</errorcode>
|
|
</verify>
|
|
</testcase>
|