2007-01-23 10:25:56 +08:00
|
|
|
<testcase>
|
2008-02-09 10:08:34 +08:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
2008-09-30 06:44:04 +08:00
|
|
|
HTTP proxy
|
2008-02-09 10:08:34 +08:00
|
|
|
persistent connection
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
2004-08-24 22:40:32 +08:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2004-08-24 22:40:32 +08:00
|
|
|
Content-Length: 4
|
|
|
|
|
|
|
|
moo
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP GET two URLs over a single proxy with persistent connection
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://deathstar.another.galaxy/%TESTNUMBER http://a.galaxy.far.far.away/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT
|
2004-08-24 22:40:32 +08:00
|
|
|
</command>
|
2019-10-15 04:29:19 +08:00
|
|
|
<features>
|
|
|
|
proxy
|
|
|
|
</features>
|
2005-01-26 05:45:03 +08:00
|
|
|
</client>
|
2004-08-24 22:40:32 +08:00
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET http://deathstar.another.galaxy/%TESTNUMBER HTTP/1.1
|
2004-08-24 22:40:32 +08:00
|
|
|
Host: deathstar.another.galaxy
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2004-08-24 22:40:32 +08:00
|
|
|
Accept: */*
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2004-08-24 22:40:32 +08:00
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET http://a.galaxy.far.far.away/%TESTNUMBER HTTP/1.1
|
2004-08-24 22:40:32 +08:00
|
|
|
Host: a.galaxy.far.far.away
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2004-08-24 22:40:32 +08:00
|
|
|
Accept: */*
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2004-08-24 22:40:32 +08:00
|
|
|
|
|
|
|
</protocol>
|
|
|
|
|
|
|
|
</verify>
|
2007-01-23 10:25:56 +08:00
|
|
|
</testcase>
|