2007-01-22 21:25:56 -05:00
|
|
|
<testcase>
|
2004-12-21 14:59:35 -05:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
|
|
|
|
# this is returned first since we get no proxy-auth
|
2007-01-22 21:25:56 -05:00
|
|
|
<data nocheck="1">
|
2004-12-21 14:59:35 -05:00
|
|
|
HTTP/1.1 405 Method Not Allowed swsclose
|
|
|
|
|
|
|
|
And you should ignore this data.
|
|
|
|
</data>
|
|
|
|
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP proxy CONNECT to proxy returning 405
|
|
|
|
</name>
|
|
|
|
<command>
|
|
|
|
http://test.remote.server.com:217/path/2170002 --proxy http://%HOSTIP:%HTTPPORT --proxytunnel -w '%{http_code} %{http_connect}\n'
|
|
|
|
</command>
|
2005-01-25 16:45:03 -05:00
|
|
|
</client>
|
2004-12-21 14:59:35 -05:00
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strip>
|
|
|
|
^User-Agent: curl/.*
|
|
|
|
</strip>
|
|
|
|
<protocol>
|
|
|
|
CONNECT test.remote.server.com:217 HTTP/1.0
|
2005-05-11 05:52:59 -04:00
|
|
|
Host: test.remote.server.com:217
|
|
|
|
Proxy-Connection: Keep-Alive
|
2004-12-21 14:59:35 -05:00
|
|
|
|
|
|
|
</protocol>
|
|
|
|
# CURLE_RECV_ERROR
|
|
|
|
<errorcode>
|
|
|
|
56
|
|
|
|
</errorcode>
|
|
|
|
<stdout>
|
|
|
|
HTTP/1.1 405 Method Not Allowed swsclose
|
|
|
|
|
|
|
|
000 405
|
|
|
|
</stdout>
|
|
|
|
</verify>
|
2007-01-22 21:25:56 -05:00
|
|
|
</testcase>
|