/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test2105
49 строк
708 B
Daniel Stenberg
http: reject spurious CR bytes in headers
06 июн 2026, 23:54
Не верифицирован
06 июн 2026, 23:54
c3c2cfb
Код
Авторство
О чём код?
<?xml version="1.0" encoding="US-ASCII"?> <testcase> <info> <keywords> HTTP HTTP GET </keywords> </info> # Server-side <reply> <data crlf="headers" nocheck="yes"> HTTP/1.1 200 OK Date: Tue, 09 Nov 2010 14:49:00 GMT Server: test-server/%CRfake Content-Length: 6 Funny-head: yesyes -foo- </data> </reply> # Client-side <client> <server> http </server> <name> HTTP with spurious CR in received header </name> <command> http://%HOSTIP:%HTTPPORT/%TESTNUMBER </command> </client> # Verify data after the test has been "shot" <verify> <protocol crlf="headers"> GET /%TESTNUMBER HTTP/1.1 Host: %HOSTIP:%HTTPPORT User-Agent: curl/%VERSION Accept: */* </protocol> <errorcode> 8 </errorcode> </verify> </testcase>