2008-09-06 14:24:04 -04:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP/1.0
|
|
|
|
HTTP GET
|
|
|
|
HTTP CONNECT
|
2008-09-30 13:18:27 -04:00
|
|
|
HTTP proxy
|
2008-09-06 14:24:04 -04:00
|
|
|
proxytunnel
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
2013-03-15 12:28:32 -04:00
|
|
|
<connect>
|
|
|
|
HTTP/1.1 200 Mighty fine indeed
|
|
|
|
Server: test tunnel 2000
|
|
|
|
|
|
|
|
</connect>
|
|
|
|
|
2009-01-07 16:57:26 -05:00
|
|
|
<data nocheck="yes">
|
2008-09-06 14:24:04 -04: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-17 17:47:22 -05:00
|
|
|
http-proxy
|
2008-09-06 14:24:04 -04:00
|
|
|
</server>
|
|
|
|
<name>
|
2009-02-02 11:19:23 -05:00
|
|
|
HTTP 1.0 CONNECT with proxytunnel and downgrade GET to HTTP/1.0
|
2008-09-06 14:24:04 -04:00
|
|
|
</name>
|
|
|
|
<command>
|
2013-03-15 12:28:32 -04: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-06 14:24:04 -04:00
|
|
|
</command>
|
2019-10-14 16:29:19 -04:00
|
|
|
<features>
|
|
|
|
proxy
|
|
|
|
</features>
|
2008-09-06 14:24:04 -04:00
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
2011-12-17 17:47:22 -05:00
|
|
|
<proxy>
|
2013-03-15 12:28:32 -04:00
|
|
|
CONNECT %HOSTIP.1078:%HTTPPORT HTTP/1.0
|
|
|
|
Host: %HOSTIP.1078:%HTTPPORT
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2016-08-16 02:36:04 -04:00
|
|
|
Proxy-Connection: Keep-Alive
|
2008-09-06 14:24:04 -04:00
|
|
|
|
2011-12-17 17:47:22 -05:00
|
|
|
</proxy>
|
|
|
|
<protocol>
|
2008-09-06 14:24:04 -04:00
|
|
|
GET /we/want/that/page/1078 HTTP/1.1
|
2013-03-15 12:28:32 -04:00
|
|
|
Host: %HOSTIP.1078:%HTTPPORT
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2008-09-06 14:24:04 -04:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
GET /we/want/that/page/1078 HTTP/1.0
|
2013-03-15 12:28:32 -04:00
|
|
|
Host: %HOSTIP.1078:%HTTPPORT
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2008-09-06 14:24:04 -04:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
<stdout>
|
|
|
|
HTTP/1.1 200 Mighty fine indeed
|
2013-03-15 12:28:32 -04:00
|
|
|
Server: test tunnel 2000
|
2008-09-06 14:24:04 -04: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>
|