2007-01-23 05:25:56 +03:00
|
|
|
<testcase>
|
2005-04-23 01:59:08 +04:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
2007-10-12 05:44:22 +04:00
|
|
|
cookies
|
2005-04-23 01:59:08 +04:00
|
|
|
cookiejar
|
|
|
|
</keywords>
|
|
|
|
</info>
|
2003-08-05 02:57:58 +04: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 16:32:04 +03:00
|
|
|
Content-Length: 4
|
2003-08-05 02:57:58 +04: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 12:08:38 +04:00
|
|
|
http://%HOSTIP:%HTTPPORT/we/want/73 -c log/jar73.txt -H "Host: host.NOT_DISCLOSED.se"
|
2003-08-05 02:57:58 +04: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 15:46:41 +03:00
|
|
|
Accept: */*
|
2003-08-05 02:57:58 +04:00
|
|
|
Host: host.NOT_DISCLOSED.se
|
|
|
|
|
|
|
|
</protocol>
|
2007-01-23 05:25:56 +03:00
|
|
|
<file name="log/jar73.txt" mode="text">
|
2003-08-05 02:57:58 +04:00
|
|
|
# Netscape HTTP Cookie File
|
2008-08-28 15:35:54 +04:00
|
|
|
# http://curl.haxx.se/rfc/cookie_spec.html
|
2003-08-05 02:57:58 +04: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 05:25:56 +03:00
|
|
|
</testcase>
|