curl-curl/tests/data/test792
Viktor Szakats d29f14b9cf
tests: replace significant invisible spaces with macros
To make them explicit, visible, avoid being accidentally trimmed.
Also prevents Git warnings, e.g. on `git am`.

Also:
- runtests: add support for `%spc%` and `%tab%` macros.
- test59: delete non-significant line-ending space.
- spacecheck.pl: drop line-ending whitespace exception for tests.

Closes #19300
2025-10-31 17:15:33 +01:00

49 lines
603 B
Plaintext

<testcase>
<info>
<keywords>
netrc
FTP
</keywords>
</info>
#
# Server-side
<reply>
<data>
content
</data>
</reply>
#
# Client-side
<client>
<server>
ftp
</server>
<features>
proxy
</features>
<name>
.netrc with embedded NULL byte
</name>
<command>
--netrc --netrc-file %LOGDIR/netrc%TESTNUMBER ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
</command>
<file name="%LOGDIR/netrc%TESTNUMBER" >
machine %HOSTIP login username password%hex[%00]hex% hello
</file>
</client>
<verify>
<protocol crlf="yes">
USER username
PASS%spc%
PWD
EPSV
TYPE I
SIZE %TESTNUMBER
RETR %TESTNUMBER
QUIT
</protocol>
</verify>
</testcase>