HTTP
HTTP CONNECT
#
# Server-side
HTTP/1.1 200 Mighty fine indeed
HTTP/1.1 404 Not Found
Server: nginx/1.23.2
Date: Wed, 09 Nov 2022 09:44:58 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 4
Connection: keep-alive
X-Content-Type-Options: nosniff
haha
#
# Client-side
http
http-proxy
HTTP GET when PROXY Protocol enabled behind a proxy
--haproxy-protocol http://%HOSTIP:%HTTPPORT/page --proxytunnel -x %HOSTIP:%PROXYPORT
proxy
#
# Verify data after the test has been "shot"
s/^PROXY TCP4 %CLIENTIP %HOSTIP (\d*) %PROXYPORT/proxy-line/
CONNECT %HOSTIP:%HTTPPORT HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Proxy-Connection: Keep-Alive
proxy-line
GET /page HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*