/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test2114
43 строки
857 B
Stefan Eissing
test2114: fix reading from stdin
04 июл 2026, 23:53
Не верифицирован
04 июл 2026, 23:53
e0222c0
Код
Авторство
О чём код?
<?xml version="1.0" encoding="US-ASCII"?> <testcase> <info> <keywords> FTP </keywords> </info> # Server-side <reply> </reply> # Client-side <client> <server> ftp </server> <name> FTP username with embedded CRLF is rejected </name> # read the credentials from a config file so the raw CR LF reaches curl intact # regardless of how the platform passes command line arguments <file name="%LOGDIR/test%TESTNUMBER.config"> user = "anonymous\r\nSTOR: /%TESTNUMBER" </file> <command> ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -K %LOGDIR/test%TESTNUMBER.config </command> </client> # Verify data after the test has been "shot" <verify> # 43 - CURLE_BAD_FUNCTION_ARGUMENT <errorcode> 43 </errorcode> # the credentials are rejected before connecting so the injected STOR command # must never reach the server <protocol nonewline="yes"> </protocol> </verify> </testcase>