curl-curl/tests/data/test793
Daniel Stenberg 52f58ebb10
curl_get_line: make sure lines end with newline
Verify with test 792 and 793

Reported-by: z2_
Closes #17697
2025-06-22 12:58:53 +02:00

49 lines
620 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, with quoted token
</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
PWD
EPSV
TYPE I
SIZE %TESTNUMBER
RETR %TESTNUMBER
QUIT
</protocol>
</verify>
</testcase>