2007-01-23 05:25:56 +03:00
|
|
|
<testcase>
|
2008-07-31 06:51:44 +04:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
HTTP CONNECT
|
|
|
|
HTTP proxy
|
|
|
|
proxytunnel
|
|
|
|
followlocation
|
|
|
|
--write-out
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
2004-12-21 22:59:35 +03:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
|
|
|
|
# this is returned first since we get no proxy-auth
|
2009-01-08 00:57:26 +03:00
|
|
|
<data nocheck="yes">
|
2004-12-21 22:59:35 +03: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>
|
2009-05-08 19:49:19 +04:00
|
|
|
http://test.remote.haxx.se:217/path/2170002 --proxy http://%HOSTIP:%HTTPPORT --proxytunnel -w "%{http_code} %{http_connect}\n"
|
2004-12-21 22:59:35 +03:00
|
|
|
</command>
|
2005-01-26 00:45:03 +03:00
|
|
|
</client>
|
2004-12-21 22:59:35 +03:00
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strip>
|
|
|
|
^User-Agent: curl/.*
|
|
|
|
</strip>
|
|
|
|
<protocol>
|
2009-05-08 19:49:19 +04:00
|
|
|
CONNECT test.remote.haxx.se:217 HTTP/1.1
|
|
|
|
Host: test.remote.haxx.se:217
|
2005-05-11 13:52:59 +04:00
|
|
|
Proxy-Connection: Keep-Alive
|
2004-12-21 22:59:35 +03:00
|
|
|
|
|
|
|
</protocol>
|
|
|
|
# CURLE_RECV_ERROR
|
|
|
|
<errorcode>
|
|
|
|
56
|
|
|
|
</errorcode>
|
|
|
|
<stdout>
|
|
|
|
HTTP/1.1 405 Method Not Allowed swsclose
|
|
|
|
|
|
|
|
000 405
|
|
|
|
</stdout>
|
|
|
|
</verify>
|
2007-01-23 05:25:56 +03:00
|
|
|
</testcase>
|