2013-09-17 10:51:22 +04:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
2014-01-25 19:55:05 +04:00
|
|
|
HTTP proxy
|
2013-09-17 10:51:22 +04:00
|
|
|
cookies
|
|
|
|
cookiejar
|
|
|
|
delete expired cookie
|
|
|
|
</keywords>
|
|
|
|
</info>
|
2014-01-25 19:55:05 +04:00
|
|
|
|
2013-09-17 10:51:22 +04:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 17:00:03 +03:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2013-09-17 10:51:22 +04:00
|
|
|
Server: test-server/fake
|
|
|
|
Content-Length: 4
|
|
|
|
Content-Type: text/html
|
|
|
|
Funny-head: yesyes
|
|
|
|
Set-Cookie: test1value=test1; domain=example.com; path=/;
|
2019-01-07 18:23:04 +03:00
|
|
|
Set-Cookie: test2value=test2; expires=Thursday, 31-Dec-2037 00:00:00 GMT; domain=example.com; path=/;
|
2013-09-17 10:51:22 +04:00
|
|
|
Set-Cookie: test3value=test3; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
|
2019-01-07 18:23:04 +03:00
|
|
|
Set-Cookie: test4value=test4; expires=Thursday, 31-Dec-2037 00:00:00 GMT; domain=example.com; path=/;
|
2013-09-17 10:51:22 +04:00
|
|
|
Set-Cookie: test5value=test5; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
|
|
|
|
Set-Cookie: test6value=test6; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
|
2019-01-07 18:23:04 +03:00
|
|
|
Set-Cookie: test7value=test7; expires=Thursday, 31-Dec-2037 00:00:00 GMT; domain=example.com; path=/;
|
2013-09-17 10:51:22 +04:00
|
|
|
Set-Cookie: test8value=test8; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
|
|
|
|
|
|
|
|
boo
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
Delete expired cookies
|
|
|
|
</name>
|
|
|
|
<setenv>
|
|
|
|
TZ=GMT
|
|
|
|
</setenv>
|
|
|
|
<command>
|
2021-03-12 19:38:26 +03:00
|
|
|
http://example.com/we/want/%TESTNUMBER -b none -c log/jar%TESTNUMBER.txt -x %HOSTIP:%HTTPPORT
|
2013-09-17 10:51:22 +04:00
|
|
|
</command>
|
2019-10-14 23:29:19 +03:00
|
|
|
<features>
|
|
|
|
proxy
|
|
|
|
</features>
|
2014-01-17 02:41:31 +04:00
|
|
|
</client>
|
2013-09-17 10:51:22 +04:00
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-12 19:38:26 +03:00
|
|
|
GET http://example.com/we/want/%TESTNUMBER HTTP/1.1
|
2013-09-17 10:51:22 +04:00
|
|
|
Host: example.com
|
2020-10-02 14:45:24 +03:00
|
|
|
User-Agent: curl/%VERSION
|
2013-09-17 10:51:22 +04:00
|
|
|
Accept: */*
|
2016-08-16 09:36:04 +03:00
|
|
|
Proxy-Connection: Keep-Alive
|
2013-09-17 10:51:22 +04:00
|
|
|
|
|
|
|
</protocol>
|
|
|
|
|
2021-03-12 19:38:26 +03:00
|
|
|
<file name="log/jar%TESTNUMBER.txt" mode="text">
|
2013-09-17 10:51:22 +04:00
|
|
|
# Netscape HTTP Cookie File
|
2020-11-04 16:02:01 +03:00
|
|
|
# https://curl.se/docs/http-cookies.html
|
2013-09-17 10:51:22 +04:00
|
|
|
# This file was generated by libcurl! Edit at your own risk.
|
|
|
|
|
2019-01-07 18:23:04 +03:00
|
|
|
.example.com TRUE / FALSE 2145830400 test7value test7
|
|
|
|
.example.com TRUE / FALSE 2145830400 test4value test4
|
|
|
|
.example.com TRUE / FALSE 2145830400 test2value test2
|
2018-08-28 12:28:50 +03:00
|
|
|
.example.com TRUE / FALSE 0 test1value test1
|
2013-09-17 10:51:22 +04:00
|
|
|
</file>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|