mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
e2b4df7b5e
This makes the tests easier to copy and relocate to other test numbers without having to update content. Closes #6738
73 lines
1.2 KiB
Plaintext
73 lines
1.2 KiB
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTPS
|
|
HTTP
|
|
HTTP GET
|
|
cookies
|
|
HTTP replaced headers
|
|
</keywords>
|
|
</info>
|
|
|
|
# Server-side
|
|
<reply>
|
|
<data1>
|
|
HTTP/1.1 200 OK
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
|
Server: test-server/fake
|
|
Set-Cookie: foo=123; path=/; secure;
|
|
Content-Length: 7
|
|
|
|
nomnom
|
|
</data1>
|
|
<data2>
|
|
HTTP/1.1 200 OK
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
|
Server: test-server/fake
|
|
Set-Cookie: foo=; Expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/
|
|
Content-Length: 7
|
|
|
|
nomnom
|
|
</data2>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<features>
|
|
SSL
|
|
</features>
|
|
<server>
|
|
http
|
|
https
|
|
</server>
|
|
<name>
|
|
Expire secure cookies over HTTPS
|
|
</name>
|
|
<command>
|
|
-k https://%HOSTIP:%HTTPSPORT/%TESTNUMBER0001 -H "Host: www.example.com" https://%HOSTIP:%HTTPSPORT/%TESTNUMBER0002 -b "non-existing" https://%HOSTIP:%HTTPSPORT/%TESTNUMBER0001
|
|
</command>
|
|
</client>
|
|
<verify>
|
|
<protocol>
|
|
GET /%TESTNUMBER0001 HTTP/1.1
|
|
Host: www.example.com
|
|
User-Agent: curl/%VERSION
|
|
Accept: */*
|
|
|
|
GET /%TESTNUMBER0002 HTTP/1.1
|
|
Host: www.example.com
|
|
User-Agent: curl/%VERSION
|
|
Accept: */*
|
|
Cookie: foo=123
|
|
|
|
GET /%TESTNUMBER0001 HTTP/1.1
|
|
Host: www.example.com
|
|
User-Agent: curl/%VERSION
|
|
Accept: */*
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|