/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test1942
67 строк
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> curl_easy_header CONNECT </keywords> </info> # Server-side <reply> <data nocheck="yes"> HTTP/1.1 100 continue Date: Thu, 09 Nov 2010 14:49:00 GMT Server: maybe different HTTP/1.1 200 OK Date: Thu, 09 Nov 2010 14:49:00 GMT Server: test with trailing space%repeat[5 x ]% Content-Type: text/html Content-Length: 0 Set-Cookie: onecookie=data; Set-Cookie: secondcookie=2data; Set-Cookie: cookie3=data3; Location: /%TESTNUMBER0002 </data> </reply> # Client-side <client> <features> http headers-api </features> <server> http </server> <name> curl_easy_header with 1xx response </name> <tool> lib1940 </tool> <command> http://%HOSTIP:%HTTPPORT/%TESTNUMBER </command> </client> # Verify data after the test has been "shot" <verify> <stdout> Date == Thu, 09 Nov 2010 14:49:00 GMT Server == test with trailing space Content-Type == text/html Content-Length == 0 Location == /%TESTNUMBER0002 - Set-Cookie == onecookie=data; (0/3) - Set-Cookie == secondcookie=2data; (1/3) - Set-Cookie == cookie3=data3; (2/3) Date == Thu, 09 Nov 2010 14:49:00 GMT Server == maybe different </stdout> </verify> </testcase>