HTTP
HTTP GET
HTTP CONNECT
HTTP proxy
proxytunnel
followlocation
--write-out
# 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.example.com.217:%HTTPPORT/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.example.com.217:%HTTPPORT HTTP/1.1
Host: test.remote.example.com.217:%HTTPPORT
# CURLE_RECV_ERROR
56
HTTP/1.1 405 Method Not Allowed swsclose
000 405