/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test2106
53 строки
764 B
alhudz
chunked: reject invalid bytes in trailer
08 июн 2026, 14:56
Не верифицирован
08 июн 2026, 14:56
7de0a7e
Код
Авторство
О чём код?
<?xml version="1.0" encoding="US-ASCII"?> <testcase> <info> <keywords> HTTP HTTP GET chunked Transfer-Encoding </keywords> </info> # Server-side <reply> <data nocheck="yes"> HTTP/1.1 200 OK%CR Server: test%CR Transfer-Encoding: chunked%CR Trailer: chunky-trailer%CR %CR 6%CR -foo-%CR 0%CR chunky-trailer: he%hex[%00]hex%llo%CR %CR </data> </reply> # Client-side <client> <server> http </server> <name> HTTP chunked response with a nul byte in the trailer </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>