2019-01-09 17:11:58 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTPS
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
cookies
|
|
|
|
HTTP replaced headers
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data1>
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2019-01-09 17:11:58 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Set-Cookie: foo=123; path=/; secure;
|
|
|
|
Content-Length: 7
|
|
|
|
|
|
|
|
nomnom
|
|
|
|
</data1>
|
|
|
|
<data2>
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2019-01-09 17:11:58 +08:00
|
|
|
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>
|
2021-03-13 00:38:26 +08:00
|
|
|
-k https://%HOSTIP:%HTTPSPORT/%TESTNUMBER0001 -H "Host: www.example.com" https://%HOSTIP:%HTTPSPORT/%TESTNUMBER0002 -b "non-existing" https://%HOSTIP:%HTTPSPORT/%TESTNUMBER0001
|
2019-01-09 17:11:58 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER0001 HTTP/1.1
|
2019-01-09 17:11:58 +08:00
|
|
|
Host: www.example.com
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2019-01-09 17:11:58 +08:00
|
|
|
Accept: */*
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER0002 HTTP/1.1
|
2019-01-09 17:11:58 +08:00
|
|
|
Host: www.example.com
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2019-01-09 17:11:58 +08:00
|
|
|
Accept: */*
|
|
|
|
Cookie: foo=123
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER0001 HTTP/1.1
|
2019-01-09 17:11:58 +08:00
|
|
|
Host: www.example.com
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2019-01-09 17:11:58 +08:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
|
|
|
|
</verify>
|
|
|
|
|
|
|
|
</testcase>
|