/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test1159
57 строк
1 KB
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 GET redirect_url followlocation --write-out </keywords> </info> # Server-side <reply> <data crlf="headers" nocheck="yes"> HTTP/1.1 301 This is a weirdo text message swsclose Location: ht3p://localhost/ Content-Length: 62 Connection: close This server reply is for testing a simple Location: following </data> </reply> # Client-side <client> <server> http </server> <name> HTTP Location: and 'redirect_url' with non-supported scheme </name> <command> http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER -w '%{redirect_url}\n' </command> </client> # Verify data after the test has been "shot" <verify> <protocol crlf="headers"> GET /we/want/our/%TESTNUMBER HTTP/1.1 Host: %HOSTIP:%HTTPPORT User-Agent: curl/%VERSION Accept: */* </protocol> <stdout crlf="headers"> HTTP/1.1 301 This is a weirdo text message swsclose Location: ht3p://localhost/ Content-Length: 62 Connection: close This server reply is for testing a simple Location: following ht3p://localhost/ </stdout> </verify> </testcase>