/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test3228
58 строк
953 B
Graham Campbell
http: stop dropping large custom headers
21 июл 2026, 01:37
Не верифицирован
21 июл 2026, 01:37
5bb7d7a
Код
Авторство
О чём код?
<?xml version="1.0" encoding="US-ASCII"?> <testcase> <info> <keywords> HTTP HTTP GET HTTP added headers </keywords> </info> # Server-side <reply> <data> HTTP/1.1 200 OK Date: Tue, 09 Nov 2010 14:49:00 GMT Server: test-server/fake Content-Length: 6 Connection: close -foo- </data> </reply> # Client-side <client> <server> http </server> <name> Send custom request headers larger than the response header limit </name> <stdin> header "X-Large: %repeat[307200 x x]%" header "Connection: %repeat[307200 x x]%" header "%repeat[307201 x X]%;" </stdin> <command> -K - http://%HOSTIP:%HTTPPORT/%TESTNUMBER </command> </client> # Verify data after the test has been "shot" <verify> <protocol crlf="yes"> GET /%TESTNUMBER HTTP/1.1 Host: %HOSTIP:%HTTPPORT User-Agent: curl/%VERSION Accept: */* X-Large: %repeat[307200 x x]% %repeat[307201 x X]%: Connection: %repeat[307200 x x]% </protocol> <limits> Maximum allocated: 4000000 </limits> </verify> </testcase>