2007-01-29 17:26:36 +08:00
|
|
|
<testcase>
|
2008-08-12 07:16:48 +08:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP CONNECT
|
|
|
|
HTTP proxy
|
|
|
|
proxytunnel
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
2007-01-29 17:26:36 +08:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
|
2013-03-16 00:28:32 +08:00
|
|
|
<connect nocheck="yes">
|
2007-01-29 17:26:36 +08:00
|
|
|
HTTP/1.1 405 Method Not Allowed swsclose
|
|
|
|
|
|
|
|
And you should ignore this data.
|
2013-03-16 00:28:32 +08:00
|
|
|
</connect>
|
2007-01-29 17:26:36 +08:00
|
|
|
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP proxy CONNECT with custom User-Agent header
|
|
|
|
</name>
|
|
|
|
<command>
|
2015-04-23 21:58:21 +08:00
|
|
|
http://test.remote.example.com.287:%HTTPPORT/path/287 -H "User-Agent: looser/2015" --proxy http://%HOSTIP:%HTTPPORT --proxytunnel --proxy-header "User-Agent: looser/2007"
|
2007-01-29 17:26:36 +08:00
|
|
|
</command>
|
2019-10-15 04:29:19 +08:00
|
|
|
<features>
|
|
|
|
proxy
|
|
|
|
</features>
|
2007-01-29 17:26:36 +08:00
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2013-03-16 00:28:32 +08:00
|
|
|
CONNECT test.remote.example.com.287:%HTTPPORT HTTP/1.1
|
|
|
|
Host: test.remote.example.com.287:%HTTPPORT
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2007-01-29 17:26:36 +08:00
|
|
|
User-Agent: looser/2007
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
# CURLE_RECV_ERROR
|
|
|
|
<errorcode>
|
|
|
|
56
|
|
|
|
</errorcode>
|
|
|
|
<stdout>
|
|
|
|
HTTP/1.1 405 Method Not Allowed swsclose
|
|
|
|
|
|
|
|
</stdout>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|