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
|
2020-02-28 09:00:03 -05:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2003-08-04 18:57:58 -04:00
|
|
|
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>
|
2021-03-12 11:38:26 -05:00
|
|
|
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -c log/jar%TESTNUMBER.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>
|
|
|
|
<protocol>
|
2021-03-12 11:38:26 -05:00
|
|
|
GET /we/want/%TESTNUMBER HTTP/1.1
|
2003-08-04 18:57:58 -04:00
|
|
|
Host: host.NOT_DISCLOSED.se
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2015-03-11 19:50:46 -04:00
|
|
|
Accept: */*
|
2003-08-04 18:57:58 -04:00
|
|
|
|
|
|
|
</protocol>
|
2021-03-12 11:38:26 -05:00
|
|
|
<file name="log/jar%TESTNUMBER.txt" mode="text">
|
2003-08-04 18:57:58 -04:00
|
|
|
# Netscape HTTP Cookie File
|
2020-11-04 08:02:01 -05:00
|
|
|
# https://curl.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>
|