/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test679
54 строки
1007 B
Daniel Stenberg
test 679: add a quoted string name in a netrc test
23 июн 2026, 18:23
Не верифицирован
23 июн 2026, 18:23
9adc32a
Код
Авторство
О чём код?
<?xml version="1.0" encoding="US-ASCII"?> <testcase> <info> <keywords> HTTP netrc </keywords> </info> # Server-side <reply> <data> HTTP/1.1 200 OK Date: Tue, 09 Nov 2010 14:49:00 GMT Server: test-server/fake Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT ETag: "21025-dc7-39462498" Accept-Ranges: bytes Content-Length: 6 Connection: close Content-Type: text/html Funny-head: yesyes -foo- </data> </reply> # Client-side <client> <server> http </server> <name> netrc with quoted username and password </name> <command> --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER http://%HOSTIP:%HTTPPORT/ </command> <file name="%LOGDIR/netrc%TESTNUMBER" > machine %HOSTIP login "user one" password "with spaces and \"\n\r\t\a" </file> </client> # Verify data after the test has been "shot" <verify> <protocol crlf="headers"> GET / HTTP/1.1 Host: %HOSTIP:%HTTPPORT Authorization: Basic %b64[user%20one:with%20spaces%20and%20"%0a%0d%09a]b64% User-Agent: curl/%VERSION Accept: */* </protocol> </verify> </testcase>