/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test24
49 строк
832 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 GET --fail </keywords> </info> # Server-side <reply> <data nocheck="yes"> HTTP/1.0 404 BAD BOY Content-Type: text/html This silly page does not reaaaaaly exist so you should not get it. </data> </reply> # Client-side <client> <server> http </server> <name> HTTP GET fail silently on HTTP error return </name> <command> http://%HOSTIP:%HTTPPORT/%TESTNUMBER --fail --silent --show-error </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> 22 </errorcode> <file2 name="%LOGDIR/stderr%TESTNUMBER" mode="text"> curl: (22) The requested URL returned error: 404 </file2> </verify> </testcase>