Revert "Update to 7.44.0"
[platform/upstream/curl.git] / tests / data / test503
index 24d55dc..ea31483 100644 (file)
@@ -1,5 +1,25 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP GET
+HTTP CONNECT
+HTTP proxy
+HTTP proxy Basic auth
+proxytunnel
+multi
+</keywords>
+</info>
+
 # Server-side
 <reply>
+<servercmd>
+connection-monitor
+</servercmd>
+<connect>
+HTTP/1.1 200 Mighty fine indeed\r
+\r
+</connect>
 <data>
 HTTP/1.1 200 OK swsclose
 Date: Thu, 09 Nov 2010 14:49:00 GMT
@@ -9,8 +29,8 @@ ETag: "21025-dc7-39462498"
 
 </data>
 <datacheck>
-HTTP/1.1 200 Mighty fine indeed
-
+HTTP/1.1 200 Mighty fine indeed\r
+\r
 HTTP/1.1 200 OK swsclose
 Date: Thu, 09 Nov 2010 14:49:00 GMT
 Server: test-server/fake
@@ -24,6 +44,7 @@ ETag: "21025-dc7-39462498"
 <client>
 <server>
 http
+http-proxy
 </server>
 # tool is what to use instead of 'curl'
 <tool>
@@ -34,7 +55,7 @@ lib503
 simple multi http:// through proxytunnel with authentication info
  </name>
  <command>
-http://%HOSTIP:%HTTPSPORT/503 localhost:%HOSTPORT
+http://machine.503:%HTTPPORT/503 %HOSTIP:%PROXYPORT
 </command>
 <file name="log/test503.txt">
 foo
@@ -47,15 +68,20 @@ moo
 
 # Verify data after the test has been "shot"
 <verify>
-<protocol>
-CONNECT 127.0.0.1:8433 HTTP/1.0\r
-Proxy-authorization: Basic dGVzdDppbmc=\r
+<proxy>
+CONNECT machine.503:%HTTPPORT HTTP/1.1\r
+Host: machine.503:%HTTPPORT\r
+Proxy-Authorization: Basic dGVzdDppbmc=\r
+Proxy-Connection: Keep-Alive\r
 \r
+</proxy>
+<protocol>
 GET /503 HTTP/1.1\r
 Authorization: Basic dGVzdDppbmc=\r
-Host: 127.0.0.1:8433\r
-Pragma: no-cache\r
+Host: machine.503:%HTTPPORT\r
 Accept: */*\r
 \r
+[DISCONNECT]
 </protocol>
 </verify>
+</testcase>