/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test474
50 строк
901 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> -w --write-out </keywords> </info> # Server-side <reply> <data crlf="headers" nocheck="yes"> HTTP/1.1 301 OK Date: Tue, 09 Nov 2010 14:49:00 GMT Content-Length: 0 Connection: close Content-Type: text/html Location: https://%HOSTIP:%HTTPSPORT/%TESTNUMBER0002 </data> <data2 crlf="headers" nocheck="yes"> HTTP/1.1 200 OK Date: Tue, 09 Nov 2010 14:49:00 GMT Content-Length: 0 Connection: close </data2> </reply> # Client-side <client> <server> http https </server> <name> -w urle.scheme after HTTP to HTTPS redirect </name> <command option="no-include"> --insecure -L http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w "%{num_redirects} %{url_effective} %{urle.scheme}\n" </command> </client> # Verify data after the test has been "shot" <verify> <stdout> 1 https://%HOSTIP:%HTTPSPORT/%TESTNUMBER0002 https </stdout> </verify> </testcase>