diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index 5c27bdf097..9e585d602d 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -247,6 +247,6 @@ test2300 test2301 test2302 test2303 \ test3000 test3001 test3002 test3003 test3004 test3005 test3006 test3007 \ test3008 test3009 test3010 test3011 test3012 test3013 test3014 test3015 \ test3016 test3017 test3018 test3019 test3020 test3021 test3022 test3023 \ -test3024 test3025 test3026 test3027 \ +test3024 test3025 test3026 test3027 test3028 \ \ test3100 diff --git a/tests/data/test3028 b/tests/data/test3028 new file mode 100644 index 0000000000..bc69e862af --- /dev/null +++ b/tests/data/test3028 @@ -0,0 +1,73 @@ + + + +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: */* + + + + +