From 313b274b9d60554217954939427f49337d7d4e9e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 18 May 2014 16:55:03 +0200 Subject: test1134: verify CREDSPERREQUEST for HTTP Verifies that the change in 68f0166a92 works as intended and that different HTTP auth credentials to the same host still re-uses the connection properly. --- tests/data/test1134 | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 tests/data/test1134 (limited to 'tests/data/test1134') diff --git a/tests/data/test1134 b/tests/data/test1134 new file mode 100644 index 000000000..f8db6ebd2 --- /dev/null +++ b/tests/data/test1134 @@ -0,0 +1,65 @@ + + + +HTTP +HTTP HEAD +-G + + +# +# Server-side + + +connection-monitor + + +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Content-Length: 10 + +contents1 + + +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Content-Length: 10 + +contents2 + + + +# +# Client-side + + +http + + +HTTP connection re-use with different credentials + + +http://%HOSTIP:%HTTPPORT/1134 -u user1:password1 --next http://%HOSTIP:%HTTPPORT/11340001 -u 2user:password2 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1134 HTTP/1.1 +Authorization: Basic dXNlcjE6cGFzc3dvcmQx +Host: %HOSTIP:%HTTPPORT +Accept: */* + +GET /11340001 HTTP/1.1 +Authorization: Basic MnVzZXI6cGFzc3dvcmQy +Host: %HOSTIP:%HTTPPORT +Accept: */* + +[DISCONNECT] + + + -- cgit v1.2.1