/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test1940
71 строка
1 KB
Daniel Stenberg
http: fix for unfolding line starting with TAB
19 дек 2025, 12:52
Не верифицирован
19 дек 2025, 12:52
6c7bc98
Код
Авторство
О чём код?
<?xml version="1.0" encoding="US-ASCII"?> <testcase> <info> <keywords> curl_easy_header </keywords> </info> # Server-side <reply> <data nocheck="yes"> HTTP/1.1 200 OK Date: Thu, 09 Nov 2010 14:49:00 GMT Server: test with trailing space%repeat[5 x ]% Content-Type: text/html Fold: is folding a%repeat[5 x ]% line Content-Length: 0 Test:%TAB %TAB%SP %TABword Set-Cookie: onecookie=data; Set-Cookie: secondcookie=2data; Set-Cookie: cookie3=data3; Blank: Blank2:%CR Location: /%TESTNUMBER0002 </data> </reply> # Client-side <client> <features> headers-api </features> <server> http </server> <name> curl_easy_header </name> <tool> lib%TESTNUMBER </tool> <command> http://%HOSTIP:%HTTPPORT/%TESTNUMBER </command> </client> # Verify data after the test has been "shot" <verify> <stdout> Date == Thu, 09 Nov 2010 14:49:00 GMT Server == test with trailing space Content-Type == text/html Content-Length == 0 Location == /%TESTNUMBER0002 - Set-Cookie == onecookie=data; (0/3) - Set-Cookie == secondcookie=2data; (1/3) - Set-Cookie == cookie3=data3; (2/3) Fold == is folding a line Blank ==%SP Blank2 ==%SP Test == word </stdout> </verify> </testcase>