2016-06-30 05:06:32 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
HTTP proxy
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Server: test-server/fake
|
|
|
|
Content-Length: 5
|
|
|
|
|
|
|
|
bing
|
|
|
|
</data>
|
|
|
|
<data1>
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Server: test-server/fake
|
|
|
|
Content-Length: 6
|
|
|
|
|
|
|
|
wrong
|
|
|
|
</data1>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
https
|
|
|
|
</server>
|
2020-05-27 17:51:34 +08:00
|
|
|
<features>
|
|
|
|
proxy
|
|
|
|
</features>
|
|
|
|
<name>
|
2016-06-30 05:06:32 +08:00
|
|
|
HTTP GET same URL - different proxy ports
|
2020-05-27 17:51:34 +08:00
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -x %HOSTIP:%HTTPPORT --next http://%HOSTIP:%HTTPPORT/%TESTNUMBER00001 -x %HOSTIP:%HTTPSPORT
|
2016-06-30 05:06:32 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
# the second request meant to fail
|
|
|
|
<errorcode>
|
|
|
|
56
|
|
|
|
</errorcode>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER HTTP/1.1
|
2016-06-30 05:06:32 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2016-06-30 05:06:32 +08:00
|
|
|
Accept: */*
|
2016-08-16 16:14:48 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2016-06-30 05:06:32 +08:00
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|