/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test2504
55 строк
812 B
Marcel Raad
tests: add `cookies` feature to some tests
03 июн 2026, 13:44
Не верифицирован
03 июн 2026, 13:44
75a94f3
Код
Авторство
О чём код?
<?xml version="1.0" encoding="US-ASCII"?> <testcase> <info> <keywords> HTTP cookies </keywords> </info> # Server-side <reply> <data crlf="headers" nocheck="yes"> HTTP/1.1 200 OK Date: Tue, 09 Nov 2010 14:49:00 GMT Server: server.example.com Content-Length: 47 Set-Cookie: sid=SECRET123; Path=/ file contents should appear once for each file </data> </reply> # Client-side <client> <server> http </server> <tool> lib%TESTNUMBER </tool> <name> custom Host with cookie, handle reuse, no custom Host: </name> <command> http://%HOSTIP:%HTTPPORT </command> <features> cookies </features> </client> # Verify data after the test has been "shot" <verify> <protocol crlf="headers"> GET / HTTP/1.1 Host: victim.internal Accept: */* GET / HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* </protocol> </verify> </testcase>