2019-02-26 23:35:07 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
cookies
|
|
|
|
FLUSH
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data nocheck="yes">
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2019-02-26 23:35:07 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Content-Type: text/html
|
|
|
|
Funny-head: yesyes swsclose
|
|
|
|
Set-Cookie: foobar=name;
|
|
|
|
Set-Cookie: secondcookie=present;
|
|
|
|
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
CURLOPT_COOKIELIST set to "FLUSH" of a shared cookie object
|
|
|
|
</name>
|
|
|
|
<tool>
|
2021-03-13 00:38:26 +08:00
|
|
|
lib%TESTNUMBER
|
2019-03-24 22:19:50 +08:00
|
|
|
</tool>
|
2019-02-26 23:35:07 +08:00
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER
|
2019-02-26 23:35:07 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /we/want/%TESTNUMBER HTTP/1.1
|
2019-02-26 23:35:07 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
<file name="log/cookies%TESTNUMBER" mode="text">
|
2019-02-26 23:35:07 +08:00
|
|
|
# Netscape HTTP Cookie File
|
2020-11-04 21:02:01 +08:00
|
|
|
# https://curl.se/docs/http-cookies.html
|
2019-02-26 23:35:07 +08:00
|
|
|
# This file was generated by libcurl! Edit at your own risk.
|
|
|
|
|
|
|
|
%HOSTIP FALSE /we/want/ FALSE 0 secondcookie present
|
|
|
|
%HOSTIP FALSE /we/want/ FALSE 0 foobar name
|
|
|
|
</file>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|