2007-01-23 10:25:56 +08:00
|
|
|
<testcase>
|
2008-08-12 07:16:48 +08:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
HTTP CONNECT
|
|
|
|
HTTP proxy
|
|
|
|
HTTP proxy Basic auth
|
|
|
|
proxytunnel
|
|
|
|
multi
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
2002-12-14 00:17:27 +08:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
2012-07-05 15:31:04 +08:00
|
|
|
<servercmd>
|
|
|
|
connection-monitor
|
|
|
|
</servercmd>
|
2013-03-16 00:28:32 +08:00
|
|
|
<connect>
|
|
|
|
HTTP/1.1 200 Mighty fine indeed
|
|
|
|
|
|
|
|
</connect>
|
2002-12-14 00:17:27 +08:00
|
|
|
<data>
|
2003-07-20 07:57:08 +08:00
|
|
|
HTTP/1.1 200 OK swsclose
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2002-12-14 00:17:27 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
|
|
|
ETag: "21025-dc7-39462498"
|
|
|
|
|
|
|
|
</data>
|
2004-01-27 20:54:22 +08:00
|
|
|
<datacheck>
|
2004-11-29 20:01:07 +08:00
|
|
|
HTTP/1.1 200 Mighty fine indeed
|
|
|
|
|
2004-01-27 20:54:22 +08:00
|
|
|
HTTP/1.1 200 OK swsclose
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2004-01-27 20:54:22 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
|
|
|
ETag: "21025-dc7-39462498"
|
|
|
|
|
|
|
|
</datacheck>
|
2002-12-14 00:17:27 +08:00
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
2002-12-16 22:50:10 +08:00
|
|
|
http
|
2011-12-18 06:47:22 +08:00
|
|
|
http-proxy
|
2002-12-14 00:17:27 +08:00
|
|
|
</server>
|
|
|
|
# tool is what to use instead of 'curl'
|
|
|
|
<tool>
|
2021-03-13 00:38:26 +08:00
|
|
|
lib%TESTNUMBER
|
2002-12-14 00:17:27 +08:00
|
|
|
</tool>
|
2019-10-15 04:29:19 +08:00
|
|
|
<features>
|
|
|
|
proxy
|
|
|
|
</features>
|
2002-12-14 00:17:27 +08:00
|
|
|
<name>
|
2003-10-25 04:39:39 +08:00
|
|
|
simple multi http:// through proxytunnel with authentication info
|
2002-12-14 00:17:27 +08:00
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://machine.%TESTNUMBER:%HTTPPORT/%TESTNUMBER %HOSTIP:%PROXYPORT
|
2002-12-14 00:17:27 +08:00
|
|
|
</command>
|
2021-03-13 00:38:26 +08:00
|
|
|
<file name="log/test%TESTNUMBER.txt">
|
2002-12-14 00:17:27 +08:00
|
|
|
foo
|
|
|
|
bar
|
|
|
|
bar
|
|
|
|
foo
|
|
|
|
moo
|
|
|
|
</file>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
2011-12-18 06:47:22 +08:00
|
|
|
<proxy>
|
2021-03-13 00:38:26 +08:00
|
|
|
CONNECT machine.%TESTNUMBER:%HTTPPORT HTTP/1.1
|
|
|
|
Host: machine.%TESTNUMBER:%HTTPPORT
|
2004-05-04 15:52:53 +08:00
|
|
|
Proxy-Authorization: Basic dGVzdDppbmc=
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2002-12-14 00:17:27 +08:00
|
|
|
|
2011-12-18 06:47:22 +08:00
|
|
|
</proxy>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
|
|
|
Host: machine.%TESTNUMBER:%HTTPPORT
|
2015-03-12 07:50:46 +08:00
|
|
|
Authorization: Basic dGVzdDppbmc=
|
2004-02-09 20:46:41 +08:00
|
|
|
Accept: */*
|
2002-12-14 00:17:27 +08:00
|
|
|
|
2012-07-05 17:20:18 +08:00
|
|
|
[DISCONNECT]
|
2002-12-14 00:17:27 +08:00
|
|
|
</protocol>
|
|
|
|
</verify>
|
2007-01-23 10:25:56 +08:00
|
|
|
</testcase>
|