curl/tests/data/test1645
Fabian Keil 244834d3a1
tests: add the "--resolve" keyword to tests that lack it
... even though they use the curl option "--resolve".

This makes it more convenient to choose or skip the tests.

For example Privoxy's cts test framework relies on the "--resolve"
keyword when executing the "upstream-tests" scenario to skip curl
tests that aren't expected to work when the requests are made through
Privoxy. While some of the modified tests are already skipped for
other reasons through other means when testing Privoxy, it's good to
be consistent.

Closes #21930
2026-06-11 23:10:16 +02:00

74 lines
1.4 KiB
XML

<?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>