2008-09-07 02:24:04 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP/1.0
|
|
|
|
HTTP GET
|
|
|
|
HTTP CONNECT
|
2008-10-01 01:18:27 +08:00
|
|
|
HTTP proxy
|
2008-09-07 02:24:04 +08:00
|
|
|
proxytunnel
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
2013-03-16 00:28:32 +08:00
|
|
|
<connect>
|
|
|
|
HTTP/1.1 200 Mighty fine indeed
|
|
|
|
Server: test tunnel 2000
|
|
|
|
|
|
|
|
</connect>
|
|
|
|
|
2009-01-08 05:57:26 +08:00
|
|
|
<data nocheck="yes">
|
2008-09-07 02:24:04 +08:00
|
|
|
HTTP/1.0 200 OK
|
|
|
|
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
|
|
|
Server: test-server/fake
|
|
|
|
Content-Type: text/html
|
|
|
|
Funny-head: yesyes
|
|
|
|
Content-Length: 9
|
|
|
|
Connection: keep-alive
|
|
|
|
|
|
|
|
contents
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
2011-12-18 06:47:22 +08:00
|
|
|
http-proxy
|
2008-09-07 02:24:04 +08:00
|
|
|
</server>
|
|
|
|
<name>
|
2009-02-03 00:19:23 +08:00
|
|
|
HTTP 1.0 CONNECT with proxytunnel and downgrade GET to HTTP/1.0
|
2008-09-07 02:24:04 +08:00
|
|
|
</name>
|
|
|
|
<command>
|
2013-03-16 00:28:32 +08:00
|
|
|
--proxy1.0 %HOSTIP:%PROXYPORT -p http://%HOSTIP.1078:%HTTPPORT/we/want/that/page/1078 http://%HOSTIP.1078:%HTTPPORT/we/want/that/page/1078
|
2008-09-07 02:24:04 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strip>
|
|
|
|
^User-Agent:.*
|
|
|
|
</strip>
|
2011-12-18 06:47:22 +08:00
|
|
|
<proxy>
|
2013-03-16 00:28:32 +08:00
|
|
|
CONNECT %HOSTIP.1078:%HTTPPORT HTTP/1.0
|
|
|
|
Host: %HOSTIP.1078:%HTTPPORT
|
2008-09-07 02:24:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
|
|
|
|
2011-12-18 06:47:22 +08:00
|
|
|
</proxy>
|
|
|
|
<protocol>
|
2008-09-07 02:24:04 +08:00
|
|
|
GET /we/want/that/page/1078 HTTP/1.1
|
2013-03-16 00:28:32 +08:00
|
|
|
Host: %HOSTIP.1078:%HTTPPORT
|
2008-09-07 02:24:04 +08:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
GET /we/want/that/page/1078 HTTP/1.0
|
2013-03-16 00:28:32 +08:00
|
|
|
Host: %HOSTIP.1078:%HTTPPORT
|
2008-09-07 02:24:04 +08:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
<stdout>
|
|
|
|
HTTP/1.1 200 Mighty fine indeed
|
2013-03-16 00:28:32 +08:00
|
|
|
Server: test tunnel 2000
|
2008-09-07 02:24:04 +08:00
|
|
|
|
|
|
|
HTTP/1.0 200 OK
|
|
|
|
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
|
|
|
Server: test-server/fake
|
|
|
|
Content-Type: text/html
|
|
|
|
Funny-head: yesyes
|
|
|
|
Content-Length: 9
|
|
|
|
Connection: keep-alive
|
|
|
|
|
|
|
|
contents
|
|
|
|
HTTP/1.0 200 OK
|
|
|
|
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
|
|
|
Server: test-server/fake
|
|
|
|
Content-Type: text/html
|
|
|
|
Funny-head: yesyes
|
|
|
|
Content-Length: 9
|
|
|
|
Connection: keep-alive
|
|
|
|
|
|
|
|
contents
|
|
|
|
</stdout>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|