2007-01-23 10:25:56 +08:00
|
|
|
<testcase>
|
2007-10-12 09:44:22 +08:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
2008-09-30 06:44:04 +08:00
|
|
|
HTTP proxy
|
2007-10-12 09:44:22 +08:00
|
|
|
cookies
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
2004-05-22 04:40:15 +08:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
2007-10-12 09:44:22 +08:00
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Date: Tue, 25 Sep 2001 19:37:44 GMT
|
|
|
|
Content-Type: text/html
|
|
|
|
Set-Cookie: XToken=xt;Domain=.z.x.com;Path=/
|
|
|
|
Cache-control: private
|
2004-05-22 04:40:15 +08:00
|
|
|
Content-Length: 62
|
2007-10-12 09:44:22 +08:00
|
|
|
|
2007-10-12 10:09:45 +08:00
|
|
|
This server reply is for testing a simple cookie test case...
|
2004-05-22 04:40:15 +08:00
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
2004-05-24 17:01:45 +08:00
|
|
|
HTTP, get cookie with dot prefixed full domain
|
2004-05-22 04:40:15 +08:00
|
|
|
</name>
|
|
|
|
<command>
|
2004-09-08 16:08:38 +08:00
|
|
|
-c log/jar171 -x %HOSTIP:%HTTPPORT http://z.x.com/171
|
2004-05-22 04:40:15 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strip>
|
|
|
|
^User-Agent:.*
|
|
|
|
</strip>
|
|
|
|
<protocol>
|
|
|
|
GET http://z.x.com/171 HTTP/1.1
|
|
|
|
Host: z.x.com
|
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
2007-01-23 10:25:56 +08:00
|
|
|
<file name="log/jar171" mode="text">
|
2004-05-22 04:40:15 +08:00
|
|
|
# Netscape HTTP Cookie File
|
2016-02-03 07:19:02 +08:00
|
|
|
# https://curl.haxx.se/docs/http-cookies.html
|
2004-05-22 04:40:15 +08:00
|
|
|
# This file was generated by libcurl! Edit at your own risk.
|
|
|
|
|
|
|
|
.z.x.com TRUE / FALSE 0 XToken xt
|
|
|
|
</file>
|
|
|
|
</verify>
|
2007-01-23 10:25:56 +08:00
|
|
|
</testcase>
|