/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test1629
54 строки
856 B
Fabian Keil
tests: add the "--resolve" keyword to tests that lack it
12 июн 2026, 00:10
Не верифицирован
12 июн 2026, 00:10
244834d
Код
Авторство
О чём код?
<?xml version="1.0" encoding="US-ASCII"?> <testcase> <info> <keywords> HTTP HTTP GET --resolve </keywords> </info> # Server-side <reply> <data crlf="headers"> HTTP/1.1 200 OK Content-Length: 6 Set-Cookie: something=1; Domain=co.uk.; Path=/ -foo- </data> </reply> # Client-side <client> <features> PSL cookies </features> <server> http </server> <name> cookies with trailing dot after PSL domain </name> <command> http://foo.co.uk.:%HTTPPORT/ http://bar.co.uk.:%HTTPPORT/ -b "" --resolve foo.co.uk.:%HTTPPORT:%HOSTIP --resolve bar.co.uk.:%HTTPPORT:%HOSTIP </command> </client> # Verify data after the test has been "shot" <verify> <protocol crlf="headers"> GET / HTTP/1.1 Host: foo.co.uk.:%HTTPPORT User-Agent: curl/%VERSION Accept: */* GET / HTTP/1.1 Host: bar.co.uk.:%HTTPPORT User-Agent: curl/%VERSION Accept: */* </protocol> </verify> </testcase>