/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test1672
55 строк
855 B
Daniel Stenberg
netrc: skip malformed macdef lines
22 мар 2026, 01:20
Не верифицирован
22 мар 2026, 01:20
fa13f37
Код
Авторство
О чём код?
<?xml version="1.0" encoding="US-ASCII"?> <testcase> <info> <keywords> netrc macdef </keywords> </info> <reply> <data> HTTP/1.1 200 OK Content-Length: 6 Content-Type: text/html Funny-head: yesyes 12345 </data> </reply> # Client-side <client> <server> http </server> <name> netrc parser skips macdef even with broken quote </name> <command> --netrc --netrc-file %LOGDIR/netrc%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER </command> <file name="%LOGDIR/netrc%TESTNUMBER" > macdef testmacro bin cd "broken quote put password.bin quit machine %HOSTIP login user1 password passwd1 </file> </client> # Verify data after the test has been "shot" <verify> <protocol crlf="headers"> GET /%TESTNUMBER HTTP/1.1 Host: %HOSTIP:%HTTPPORT Authorization: Basic %b64[user1:passwd1]b64% User-Agent: curl/%VERSION Accept: */* </protocol> </verify> </testcase>