2007-01-23 10:25:56 +08:00
|
|
|
<testcase>
|
2005-10-31 07:15:49 +08:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
HTTP CONNECT
|
|
|
|
HTTP Basic auth
|
2008-09-30 06:44:04 +08:00
|
|
|
HTTP proxy
|
2005-10-31 07:15:49 +08:00
|
|
|
HTTP proxy Basic auth
|
2008-09-30 06:44:04 +08:00
|
|
|
proxytunnel
|
2005-10-31 07:15:49 +08:00
|
|
|
</keywords>
|
|
|
|
</info>
|
2008-09-30 06:44:04 +08:00
|
|
|
|
2005-10-31 07:15:49 +08:00
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
2013-03-16 00:28:32 +08:00
|
|
|
<connect>
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Connected-fine: sure
|
|
|
|
|
|
|
|
</connect>
|
|
|
|
|
2005-10-31 07:15:49 +08:00
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2005-10-31 07:15:49 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Content-Type: text/html
|
|
|
|
Content-Length: 9
|
|
|
|
|
|
|
|
contents
|
|
|
|
</data>
|
|
|
|
<datacheck>
|
2013-03-16 00:28:32 +08:00
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Connected-fine: sure
|
2005-10-31 07:15:49 +08:00
|
|
|
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2005-10-31 07:15:49 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Content-Type: text/html
|
|
|
|
Content-Length: 9
|
|
|
|
|
|
|
|
contents
|
|
|
|
</datacheck>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
2011-12-18 06:47:22 +08:00
|
|
|
http-proxy
|
2005-10-31 07:15:49 +08:00
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP CONNECT with proxytunnel getting two URLs from the same host
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://remotesite.com.%TESTNUMBER:%HTTPPORT/we/want/that/page/%TESTNUMBER -p -x %HOSTIP:%PROXYPORT --user iam:myself --proxy-user youare:yourself http://remotesite.com.%TESTNUMBER:%HTTPPORT/we/want/that/page/%TESTNUMBER
|
2005-10-31 07:15:49 +08:00
|
|
|
</command>
|
2019-10-15 04:29:19 +08:00
|
|
|
<features>
|
|
|
|
proxy
|
|
|
|
</features>
|
2005-10-31 07:15:49 +08:00
|
|
|
</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 remotesite.com.%TESTNUMBER:%HTTPPORT HTTP/1.1
|
|
|
|
Host: remotesite.com.%TESTNUMBER:%HTTPPORT
|
2005-10-31 07:15:49 +08:00
|
|
|
Proxy-Authorization: Basic eW91YXJlOnlvdXJzZWxm
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2005-10-31 07:15:49 +08:00
|
|
|
|
2011-12-18 06:47:22 +08:00
|
|
|
</proxy>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /we/want/that/page/%TESTNUMBER HTTP/1.1
|
|
|
|
Host: remotesite.com.%TESTNUMBER:%HTTPPORT
|
2015-03-12 07:50:46 +08:00
|
|
|
Authorization: Basic aWFtOm15c2VsZg==
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2005-10-31 07:15:49 +08:00
|
|
|
Accept: */*
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /we/want/that/page/%TESTNUMBER HTTP/1.1
|
|
|
|
Host: remotesite.com.%TESTNUMBER:%HTTPPORT
|
2015-03-12 07:50:46 +08:00
|
|
|
Authorization: Basic aWFtOm15c2VsZg==
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2005-10-31 07:15:49 +08:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
2007-01-23 10:25:56 +08:00
|
|
|
</testcase>
|