2007-01-23 10:25:56 +08:00
|
|
|
<testcase>
|
2005-04-23 05:59:08 +08:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
cookiejar
|
|
|
|
</keywords>
|
|
|
|
</info>
|
2003-08-05 06:57:58 +08:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK swsclose
|
|
|
|
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
|
|
|
Content-Type: text/html
|
|
|
|
Set-Cookie: IPCZQX01af0fca5c=000010008168c200d25dfc4b; path=/; domain=.NOT_DISCLOSED.se
|
2006-11-25 21:32:04 +08:00
|
|
|
Content-Length: 4
|
2003-08-05 06:57:58 +08:00
|
|
|
|
|
|
|
boo
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP, receive cookies when using custom Host:, domain using only two dots
|
|
|
|
</name>
|
|
|
|
<command>
|
2004-09-08 16:08:38 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/we/want/73 -c log/jar73.txt -H "Host: host.NOT_DISCLOSED.se"
|
2003-08-05 06:57:58 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strip>
|
|
|
|
^User-Agent:.*
|
|
|
|
</strip>
|
|
|
|
<protocol>
|
|
|
|
GET /we/want/73 HTTP/1.1
|
2004-02-09 20:46:41 +08:00
|
|
|
Accept: */*
|
2003-08-05 06:57:58 +08:00
|
|
|
Host: host.NOT_DISCLOSED.se
|
|
|
|
|
|
|
|
</protocol>
|
2007-01-23 10:25:56 +08:00
|
|
|
<file name="log/jar73.txt" mode="text">
|
2003-08-05 06:57:58 +08:00
|
|
|
# Netscape HTTP Cookie File
|
2006-09-28 05:00:45 +08:00
|
|
|
# http://curlm.haxx.se/rfc/cookie_spec.html
|
2003-08-05 06:57:58 +08:00
|
|
|
# This file was generated by libcurl! Edit at your own risk.
|
|
|
|
|
|
|
|
.NOT_DISCLOSED.se TRUE / FALSE 0 IPCZQX01af0fca5c 000010008168c200d25dfc4b
|
|
|
|
</file>
|
|
|
|
</verify>
|
2007-01-23 10:25:56 +08:00
|
|
|
</testcase>
|