2007-01-23 03:25:56 +01:00
|
|
|
<testcase>
|
2007-10-12 03:44:22 +02:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
2008-09-30 00:44:04 +02:00
|
|
|
HTTP proxy
|
2007-10-12 03:44:22 +02:00
|
|
|
cookies
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
2004-05-21 22:40:15 +02:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
2007-10-12 03:44:22 +02: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-21 22:40:15 +02:00
|
|
|
Content-Length: 62
|
2007-10-12 03:44:22 +02:00
|
|
|
|
2007-10-12 04:09:45 +02:00
|
|
|
This server reply is for testing a simple cookie test case...
|
2004-05-21 22:40:15 +02:00
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
2004-05-24 11:01:45 +02:00
|
|
|
HTTP, get cookie with dot prefixed full domain
|
2004-05-21 22:40:15 +02:00
|
|
|
</name>
|
|
|
|
<command>
|
2004-09-08 10:08:38 +02:00
|
|
|
-c log/jar171 -x %HOSTIP:%HTTPPORT http://z.x.com/171
|
2004-05-21 22:40:15 +02: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: */*
|
2005-05-11 11:52:59 +02:00
|
|
|
Proxy-Connection: Keep-Alive
|
2004-05-21 22:40:15 +02:00
|
|
|
|
|
|
|
</protocol>
|
2007-01-23 03:25:56 +01:00
|
|
|
<file name="log/jar171" mode="text">
|
2004-05-21 22:40:15 +02:00
|
|
|
# Netscape HTTP Cookie File
|
2008-08-28 13:35:54 +02:00
|
|
|
# http://curl.haxx.se/rfc/cookie_spec.html
|
2004-05-21 22:40:15 +02: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 03:25:56 +01:00
|
|
|
</testcase>
|