2007-01-23 10:25:56 +08:00
|
|
|
<testcase>
|
2008-07-31 10:51:44 +08:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
HTTP CONNECT
|
|
|
|
HTTP proxy
|
|
|
|
proxytunnel
|
|
|
|
followlocation
|
|
|
|
--write-out
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
2004-12-22 03:59:35 +08:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
|
|
|
|
# this is returned first since we get no proxy-auth
|
2013-03-16 00:28:32 +08:00
|
|
|
<connect nocheck="yes">
|
2004-12-22 03:59:35 +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>
|
2004-12-22 03:59:35 +08:00
|
|
|
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP proxy CONNECT to proxy returning 405
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://test.remote.example.com.%TESTNUMBER:%HTTPPORT/path/%TESTNUMBER0002 --proxy http://%HOSTIP:%HTTPPORT --proxytunnel -w "%{http_code} %{http_connect}\n"
|
2004-12-22 03:59:35 +08:00
|
|
|
</command>
|
2019-10-15 04:29:19 +08:00
|
|
|
<features>
|
|
|
|
proxy
|
|
|
|
</features>
|
2005-01-26 05:45:03 +08:00
|
|
|
</client>
|
2004-12-22 03:59:35 +08:00
|
|
|
|
|
|
|
# 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
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2004-12-22 03:59:35 +08:00
|
|
|
|
|
|
|
</protocol>
|
|
|
|
# CURLE_RECV_ERROR
|
|
|
|
<errorcode>
|
|
|
|
56
|
|
|
|
</errorcode>
|
|
|
|
<stdout>
|
|
|
|
HTTP/1.1 405 Method Not Allowed swsclose
|
|
|
|
|
|
|
|
000 405
|
|
|
|
</stdout>
|
|
|
|
</verify>
|
2007-01-23 10:25:56 +08:00
|
|
|
</testcase>
|