2018-05-13 07:23:10 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
cookies
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2018-05-13 07:23:10 +08:00
|
|
|
Content-Length: 0
|
2020-02-28 22:00:03 +08:00
|
|
|
Set-Cookie: domain=value;path=/
|
2018-05-13 07:23:10 +08:00
|
|
|
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP cookie with parameter word as name
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -c log/cookies%TESTNUMBER.txt
|
2018-05-13 07:23:10 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2018-05-13 07:23:10 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2018-05-13 07:23:10 +08:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
<file name="log/cookies%TESTNUMBER.txt" mode="text">
|
2018-05-13 07:23:10 +08:00
|
|
|
# Netscape HTTP Cookie File
|
2020-11-04 21:02:01 +08:00
|
|
|
# https://curl.se/docs/http-cookies.html
|
2018-05-13 07:23:10 +08:00
|
|
|
# This file was generated by libcurl! Edit at your own risk.
|
|
|
|
|
2020-02-28 22:00:03 +08:00
|
|
|
%HOSTIP FALSE / FALSE 0 domain value
|
2018-05-13 07:23:10 +08:00
|
|
|
</file>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|