2013-04-10 07:40:36 -04:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
HTTP proxy
|
|
|
|
cookies
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
# This test is very similar to 1216, only that it sets the cookies from the
|
|
|
|
# first site instead of reading from a file
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Date: Tue, 25 Sep 2001 19:37:44 GMT
|
2016-03-10 05:20:56 -05:00
|
|
|
Set-Cookie: bug=fixed; domain=.example.fake;
|
2013-04-10 07:40:36 -04:00
|
|
|
Content-Length: 21
|
2021-06-08 17:58:30 -04:00
|
|
|
|
2013-04-10 07:40:36 -04:00
|
|
|
This server says moo
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP cookies and domains with same prefix
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-12 11:38:26 -05:00
|
|
|
http://example.fake/c/%TESTNUMBER http://example.fake/c/%TESTNUMBER http://bexample.fake/c/%TESTNUMBER -b nonexisting -x %HOSTIP:%HTTPPORT
|
2013-04-10 07:40:36 -04:00
|
|
|
</command>
|
2019-10-14 16:29:19 -04:00
|
|
|
<features>
|
|
|
|
proxy
|
|
|
|
</features>
|
2013-04-10 07:40:36 -04:00
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-12 11:38:26 -05:00
|
|
|
GET http://example.fake/c/%TESTNUMBER HTTP/1.1
|
2013-04-10 07:40:36 -04:00
|
|
|
Host: example.fake
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2013-04-10 07:40:36 -04:00
|
|
|
Accept: */*
|
2016-08-16 02:36:04 -04:00
|
|
|
Proxy-Connection: Keep-Alive
|
2013-04-10 07:40:36 -04:00
|
|
|
|
2021-03-12 11:38:26 -05:00
|
|
|
GET http://example.fake/c/%TESTNUMBER HTTP/1.1
|
2013-04-10 07:40:36 -04:00
|
|
|
Host: example.fake
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2013-04-10 07:40:36 -04:00
|
|
|
Accept: */*
|
2016-08-16 02:36:04 -04:00
|
|
|
Proxy-Connection: Keep-Alive
|
2013-04-10 07:40:36 -04:00
|
|
|
Cookie: bug=fixed
|
|
|
|
|
2021-03-12 11:38:26 -05:00
|
|
|
GET http://bexample.fake/c/%TESTNUMBER HTTP/1.1
|
2013-04-10 07:40:36 -04:00
|
|
|
Host: bexample.fake
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2013-04-10 07:40:36 -04:00
|
|
|
Accept: */*
|
2016-08-16 02:36:04 -04:00
|
|
|
Proxy-Connection: Keep-Alive
|
2013-04-10 07:40:36 -04:00
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|