From 479abdd32eee15dab78d0cd6b1786d569680f0ac Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Thu, 27 Nov 2014 23:59:24 +0100 Subject: tests: add two HTTP over UNIX socket tests test1435: a simple test that checks whether a HTTP request can be performed over the UNIX socket. The hostname/port are interpreted by sws and should be ignored by cURL. test1436: test for the ability to do two requests to the same host, interleaved with one to a different hostname. Signed-off-by: Peter Wu --- tests/data/test1436 | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 tests/data/test1436 (limited to 'tests/data/test1436') diff --git a/tests/data/test1436 b/tests/data/test1436 new file mode 100644 index 000000000..b16eadde0 --- /dev/null +++ b/tests/data/test1436 @@ -0,0 +1,85 @@ + + + +HTTP +HTTP GET +unix sockets + + + + + +HTTP/1.1 200 OK +Date: Mon, 17 Nov 2014 13:42:47 GMT +Content-Length: 6 + +First + + +HTTP/1.1 200 OK +Date: Mon, 17 Nov 2014 13:42:48 GMT +Content-Length: 7 + +Second + + +HTTP/1.1 200 OK +Date: Mon, 17 Nov 2014 13:42:49 GMT +Content-Length: 6 + +Third + + + + + +unix-sockets + + +http-unix + + +HTTP requests with multiple connections over UNIX socket + + +--unix-socket %HTTPUNIXPATH http://one.example.com/14360001 http://two.example.com/14360002 http://one.example.com/14360003 + + + + + +^User-Agent:.* + + +GET /14360001 HTTP/1.1 +Host: one.example.com +Accept: */* + +GET /14360002 HTTP/1.1 +Host: two.example.com +Accept: */* + +GET /14360003 HTTP/1.1 +Host: one.example.com +Accept: */* + + + +HTTP/1.1 200 OK +Date: Mon, 17 Nov 2014 13:42:47 GMT +Content-Length: 6 + +First +HTTP/1.1 200 OK +Date: Mon, 17 Nov 2014 13:42:48 GMT +Content-Length: 7 + +Second +HTTP/1.1 200 OK +Date: Mon, 17 Nov 2014 13:42:49 GMT +Content-Length: 6 + +Third + + + -- cgit v1.2.3