From 6baeb6df35d24740c55239f24b5fc4ce86f375a5 Mon Sep 17 00:00:00 2001 From: Lawrence Matthews Date: Thu, 1 Dec 2016 04:05:04 -0800 Subject: CURLOPT_HAPROXYPROTOCOL: support the HAProxy PROXY protocol Add --haproxy-protocol for the command line tool Closes #2162 --- tests/data/test1455 | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 tests/data/test1455 (limited to 'tests/data/test1455') diff --git a/tests/data/test1455 b/tests/data/test1455 new file mode 100644 index 000000000..7768a1f89 --- /dev/null +++ b/tests/data/test1455 @@ -0,0 +1,56 @@ + + + +HTTP +HTTP GET + + + +# +# Server-side + + +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT +ETag: "21025-dc7-39462498" +Accept-Ranges: bytes +Content-Length: 6 +Connection: close +Content-Type: text/html +Funny-head: barkbark + +-foo- + + + +# +# Client-side + + +http + + +HTTP GET when PROXY Protocol enabled + + +http://%HOSTIP:%HTTPPORT/1455 --haproxy-protocol --local-port 37756 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +PROXY TCP4 %CLIENTIP %HOSTIP 37756 %HTTPPORT +GET /1455 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + -- cgit v1.2.3