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>
|
2023-10-04 17:35:54 +08:00
|
|
|
<name>
|
2007-01-29 17:26:36 +08:00
|
|
|
HTTP proxy CONNECT with custom User-Agent header
|
2023-10-04 17:35:54 +08:00
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://test.remote.example.com.%TESTNUMBER:%HTTPPORT/path/%TESTNUMBER -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>
|
2021-03-13 00:38:26 +08:00
|
|
|
CONNECT test.remote.example.com.%TESTNUMBER:%HTTPPORT HTTP/1.1
|
|
|
|
Host: test.remote.example.com.%TESTNUMBER:%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>
|