2007-01-23 10:25:56 +08:00
|
|
|
<testcase>
|
2007-10-12 09:44:22 +08:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
HTTP proxy
|
|
|
|
cookies
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
2004-08-16 15:24:25 +08:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Server: Microsoft-IIS/4.0
|
|
|
|
Date: Tue, 25 Sep 2001 19:37:44 GMT
|
|
|
|
Content-Type: text/html
|
|
|
|
Connection: close
|
2021-01-08 17:57:48 +08:00
|
|
|
Content-Length: 21
|
2004-08-16 15:24:25 +08:00
|
|
|
|
|
|
|
This server says moo
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP using proxy and cookies with path checks
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://supertrooper.fake/c/%TESTNUMBER -b log/injar%TESTNUMBER -x %HOSTIP:%HTTPPORT
|
2004-08-16 15:24:25 +08:00
|
|
|
</command>
|
2021-03-13 00:38:26 +08:00
|
|
|
<file name="log/injar%TESTNUMBER">
|
2004-08-16 15:24:25 +08:00
|
|
|
supertrooper.fake FALSE /a FALSE 2139150993 mooo indeed
|
|
|
|
supertrooper.fake FALSE /b FALSE 0 moo1 indeed
|
|
|
|
supertrooper.fake FALSE /c FALSE 2139150993 moo2 indeed
|
|
|
|
</file>
|
2019-10-15 04:29:19 +08:00
|
|
|
<features>
|
|
|
|
proxy
|
|
|
|
</features>
|
2004-08-16 15:24:25 +08:00
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET http://supertrooper.fake/c/%TESTNUMBER HTTP/1.1
|
2004-08-16 15:24:25 +08:00
|
|
|
Host: supertrooper.fake
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2004-08-16 15:24:25 +08:00
|
|
|
Accept: */*
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2004-08-16 15:24:25 +08:00
|
|
|
Cookie: moo2=indeed
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
2007-01-23 10:25:56 +08:00
|
|
|
</testcase>
|