/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test1645
74 строки
1 KB
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 cookies cookiejar --resolve </keywords> </info> # Server-side <reply> <data crlf="headers"> HTTP/1.1 200 OK Content-Length: 4 Content-Type: text/html Funny-head: yesyes Set-Cookie: name=value; domain=test.curl; path=/we/want boo </data> <data2 crlf="headers"> HTTP/1.1 200 OK Content-Length: 4 Content-Type: text/html Funny-head: yesyes Set-Cookie: name=value; domain=test.curl; path=/WE/WANT boo </data2> </reply> # Client-side <client> <server> http </server> <name> cookies for paths using different case </name> <command> http://test.curl:%HTTPPORT/we/want/ http://test.curl:%HTTPPORT/WE/WANT/%TESTNUMBER0002 -c %LOGDIR/jar%TESTNUMBER.txt --resolve test.curl:%HTTPPORT:%HOSTIP </command> <features> cookies </features> </client> # Verify data after the test has been "shot" <verify> <protocol crlf="headers"> GET /we/want/ HTTP/1.1 Host: test.curl:%HTTPPORT User-Agent: curl/%VERSION Accept: */* GET /WE/WANT/%TESTNUMBER0002 HTTP/1.1 Host: test.curl:%HTTPPORT User-Agent: curl/%VERSION Accept: */* </protocol> <file name="%LOGDIR/jar%TESTNUMBER.txt" mode="text"> # Netscape HTTP Cookie File # https://curl.se/docs/http-cookies.html # This file was generated by libcurl! Edit at your own risk. .test.curl TRUE /WE/WANT FALSE 0 name value .test.curl TRUE /we/want FALSE 0 name value </file> </verify> </testcase>