/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test56
58 строк
946 B
Viktor Szakats
tests/data: add XML prolog to test files
12 дек 2025, 19:17
Не верифицирован
12 дек 2025, 19:17
b5ea073
Код
Авторство
О чём код?
<?xml version="1.0" encoding="US-ASCII"?> <testcase> <info> <keywords> HTTP HTTP POST chunked Transfer-Encoding config file -A </keywords> </info> # Server-side <reply> <data> HTTP/1.0 200 OK swsclose Funny-head: yesyes This is the proof it works </data> </reply> # Client-side <client> <server> http </server> <name> HTTP POST with *HUGE* request and chunked transfer-encoding </name> <stdin> data "we post this" # enforce chunky post! header "Transfer-Encoding: chunked" # Set the user-agent using a short-option: -A "%repeat[99999 x a]%" </stdin> <command> -K - %HOSTIP:%HTTPPORT/that.site.com/%TESTNUMBER </command> </client> # Verify data after the test has been "shot" <verify> <protocol crlf="yes"> POST /that.site.com/%TESTNUMBER HTTP/1.1 Host: %HOSTIP:%HTTPPORT User-Agent: %repeat[99999 x a]% Accept: */* Transfer-Encoding: chunked Content-Type: application/x-www-form-urlencoded c we post this 0 </protocol> </verify> </testcase>