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>
|
2021-03-13 00:38:26 +08:00
|
|
|
-c log/jar%TESTNUMBER -x %HOSTIP:%HTTPPORT http://z.x.com/%TESTNUMBER
|
2004-05-22 04:40:15 +08:00
|
|
|
</command>
|
2019-10-15 04:29:19 +08:00
|
|
|
<features>
|
|
|
|
proxy
|
|
|
|
</features>
|
2004-05-22 04:40:15 +08:00
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET http://z.x.com/%TESTNUMBER HTTP/1.1
|
2004-05-22 04:40:15 +08:00
|
|
|
Host: z.x.com
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2004-05-22 04:40:15 +08:00
|
|
|
Accept: */*
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2004-05-22 04:40:15 +08:00
|
|
|
|
|
|
|
</protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
<file name="log/jar%TESTNUMBER" mode="text">
|
2004-05-22 04:40:15 +08:00
|
|
|
# Netscape HTTP Cookie File
|
2020-11-04 21:02:01 +08:00
|
|
|
# https://curl.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>
|