# Server-side
# this is returned first since we get no proxy-auth
HTTP/1.1 405 Method Not Allowed swsclose
And you should ignore this data.
# Client-side
http
HTTP proxy CONNECT to proxy returning 405
http://test.remote.server.com:217/path/2170002 --proxy http://%HOSTIP:%HTTPPORT --proxytunnel -w "%{http_code} %{http_connect}\n"
# Verify data after the test has been "shot"
^User-Agent: curl/.*
CONNECT test.remote.server.com:217 HTTP/1.0
Host: test.remote.server.com:217
Proxy-Connection: Keep-Alive
# CURLE_RECV_ERROR
56
HTTP/1.1 405 Method Not Allowed swsclose
000 405