| 1 |
# Server-side |
| 2 |
<reply> |
| 3 |
|
| 4 |
# this is returned first since we get no proxy-auth |
| 5 |
<data nocheck=1> |
| 6 |
HTTP/1.1 405 Method Not Allowed swsclose |
| 7 |
|
| 8 |
And you should ignore this data. |
| 9 |
</data> |
| 10 |
|
| 11 |
</reply> |
| 12 |
|
| 13 |
# Client-side |
| 14 |
<client> |
| 15 |
<server> |
| 16 |
http |
| 17 |
</server> |
| 18 |
<name> |
| 19 |
HTTP proxy CONNECT to proxy returning 405 |
| 20 |
</name> |
| 21 |
<command> |
| 22 |
http://test.remote.server.com:217/path/2170002 --proxy http://%HOSTIP:%HTTPPORT --proxytunnel -w '%{http_code} %{http_connect}\n' |
| 23 |
</command> |
| 24 |
</client> |
| 25 |
|
| 26 |
# Verify data after the test has been "shot" |
| 27 |
<verify> |
| 28 |
<strip> |
| 29 |
^User-Agent: curl/.* |
| 30 |
</strip> |
| 31 |
<protocol> |
| 32 |
CONNECT test.remote.server.com:217 HTTP/1.0 |
| 33 |
Host: test.remote.server.com:217 |
| 34 |
Proxy-Connection: Keep-Alive |
| 35 |
|
| 36 |
</protocol> |
| 37 |
# CURLE_RECV_ERROR |
| 38 |
<errorcode> |
| 39 |
56 |
| 40 |
</errorcode> |
| 41 |
<stdout> |
| 42 |
HTTP/1.1 405 Method Not Allowed swsclose |
| 43 |
|
| 44 |
000 405 |
| 45 |
</stdout> |
| 46 |
</verify> |