2015-03-11 18:54:22 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
HTTP proxy
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data nocheck="yes">
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Uknown-header: blrub
|
|
|
|
Content-Length: 6
|
|
|
|
|
|
|
|
-foo-
|
|
|
|
</data>
|
|
|
|
|
|
|
|
<servercmd>
|
|
|
|
connection-monitor
|
|
|
|
</servercmd>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
Re-using HTTP proxy connection for two different host names
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
--proxy http://%HOSTIP:%HTTPPORT http://test.remote.haxx.se.%TESTNUMBER:8990/ http://different.remote.haxx.se.%TESTNUMBER:8990
|
2015-03-11 18:54:22 +08:00
|
|
|
</command>
|
2019-10-15 04:29:19 +08:00
|
|
|
<features>
|
|
|
|
proxy
|
|
|
|
</features>
|
2015-03-11 18:54:22 +08:00
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<stdout>
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Uknown-header: blrub
|
|
|
|
Content-Length: 6
|
|
|
|
|
|
|
|
-foo-
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Uknown-header: blrub
|
|
|
|
Content-Length: 6
|
|
|
|
|
|
|
|
-foo-
|
|
|
|
</stdout>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET http://test.remote.haxx.se.%TESTNUMBER:8990/ HTTP/1.1
|
|
|
|
Host: test.remote.haxx.se.%TESTNUMBER:8990
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2015-03-11 18:54:22 +08:00
|
|
|
Accept: */*
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2015-03-11 18:54:22 +08:00
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET http://different.remote.haxx.se.%TESTNUMBER:8990/ HTTP/1.1
|
|
|
|
Host: different.remote.haxx.se.%TESTNUMBER:8990
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2015-03-11 18:54:22 +08:00
|
|
|
Accept: */*
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2015-03-11 18:54:22 +08:00
|
|
|
|
|
|
|
[DISCONNECT]
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|