2007-01-22 21:25:56 -05:00
|
|
|
<testcase>
|
2005-04-22 17:59:08 -04:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
2007-10-11 21:44:22 -04:00
|
|
|
cookies
|
2005-04-22 17:59:08 -04:00
|
|
|
cookiejar
|
|
|
|
</keywords>
|
|
|
|
</info>
|
2003-08-04 18: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 08:32:04 -05:00
|
|
|
Content-Length: 4
|
2003-08-04 18: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 04:08:38 -04:00
|
|
|
http://%HOSTIP:%HTTPPORT/we/want/73 -c log/jar73.txt -H "Host: host.NOT_DISCLOSED.se"
|
2003-08-04 18: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
|
|
|
|
Host: host.NOT_DISCLOSED.se
|
2015-03-11 19:50:46 -04:00
|
|
|
Accept: */*
|
2003-08-04 18:57:58 -04:00
|
|
|
|
|
|
|
</protocol>
|
2007-01-22 21:25:56 -05:00
|
|
|
<file name="log/jar73.txt" mode="text">
|
2003-08-04 18:57:58 -04:00
|
|
|
# Netscape HTTP Cookie File
|
2016-02-02 18:19:02 -05:00
|
|
|
# https://curl.haxx.se/docs/http-cookies.html
|
2003-08-04 18: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-22 21:25:56 -05:00
|
|
|
</testcase>
|