2007-01-22 21:25:56 -05:00
|
|
|
<testcase>
|
2005-04-22 17:59:08 -04:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
HTTP replaced headers
|
2007-10-11 21:44:22 -04:00
|
|
|
cookies
|
2009-05-10 14:02:37 -04:00
|
|
|
httponly
|
2005-04-22 17:59:08 -04:00
|
|
|
</keywords>
|
|
|
|
</info>
|
2007-10-11 21:44:22 -04:00
|
|
|
|
2003-05-02 05:12:26 -04:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
2006-11-25 08:32:04 -05:00
|
|
|
HTTP/1.0 200 OK swsclose
|
2003-05-02 05:12:26 -04:00
|
|
|
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
|
|
|
Content-Type: text/html
|
|
|
|
|
|
|
|
boo
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP, send cookies when using custom Host:
|
|
|
|
</name>
|
|
|
|
<command>
|
2019-09-23 11:11:22 -04:00
|
|
|
http://%HOSTIP:%HTTPPORT/we/want/62 http://%HOSTIP:%HTTPPORT/we/want/62?hoge=fuga -b log/jar62.txt -H "Host: www.host.foo.com"
|
2003-05-02 05:12:26 -04:00
|
|
|
</command>
|
|
|
|
<file name="log/jar62.txt">
|
|
|
|
# Netscape HTTP Cookie File
|
2016-02-02 18:19:02 -05:00
|
|
|
# https://curl.haxx.se/docs/http-cookies.html
|
2003-05-02 05:12:26 -04:00
|
|
|
# This file was generated by libcurl! Edit at your own risk.
|
|
|
|
|
2019-01-07 10:23:04 -05:00
|
|
|
#HttpOnly_.foo.com TRUE /we/want/ FALSE 2147483647 test yes
|
|
|
|
.host.foo.com TRUE /we/want/ FALSE 2147483647 test2 yes
|
|
|
|
.fake.host.foo.com TRUE /we/want/ FALSE 2147483647 test4 yes
|
2003-05-02 05:12:26 -04:00
|
|
|
|
|
|
|
.foo.com TRUE /moo TRUE 0 test3 maybe
|
|
|
|
</file>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
|
|
|
GET /we/want/62 HTTP/1.1
|
2015-03-11 19:50:46 -04:00
|
|
|
Host: www.host.foo.com
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2004-02-09 07:46:41 -05:00
|
|
|
Accept: */*
|
2003-05-02 05:12:26 -04:00
|
|
|
Cookie: test2=yes; test=yes
|
|
|
|
|
2019-09-23 11:11:22 -04:00
|
|
|
GET /we/want/62?hoge=fuga HTTP/1.1
|
2015-03-11 19:50:46 -04:00
|
|
|
Host: www.host.foo.com
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2013-06-12 05:19:56 -04:00
|
|
|
Accept: */*
|
|
|
|
Cookie: test2=yes; test=yes
|
|
|
|
|
2003-05-02 05:12:26 -04:00
|
|
|
</protocol>
|
|
|
|
</verify>
|
2007-01-22 21:25:56 -05:00
|
|
|
</testcase>
|