Revert "Update to 7.44.0"
[platform/upstream/curl.git] / tests / data / test3
index 36ccad1..2167b2a 100644 (file)
@@ -1,6 +1,14 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP POST
+HTTP Basic auth
+</keywords>
+</info>
 #
 # Server-side
-<reply name="1">
+<reply>
 <data>
 HTTP/1.0 200 OK\r
 Server: test-server/fake\r
@@ -28,9 +36,9 @@ http
 HTTP POST with auth and contents but with content-length set to 0
  </name>
  <command>
- -d "fooo=mooo&pooo=clue&doo=%20%20%20++++" -u "fake:-user" http://%HOSTIP:%HOSTPORT/3
+ -d "fooo=mooo&pooo=clue&doo=%20%20%20++++" -u "fake:-user" http://%HOSTIP:%HTTPPORT/3
 </command>
-</test>
+</client>
 
 #
 # Verify data after the test has been "shot"
@@ -38,11 +46,10 @@ HTTP POST with auth and contents but with content-length set to 0
 <strip>
 ^User-Agent:.*
 </strip>
-<protocol nonewline=yes>
+<protocol nonewline="yes">
 POST /3 HTTP/1.1\r
 Authorization: Basic ZmFrZTotdXNlcg==\r
-Host: 127.0.0.1:8999\r
-Pragma: no-cache\r
+Host: %HOSTIP:%HTTPPORT\r
 Accept: */*\r
 Content-Length: 37\r
 Content-Type: application/x-www-form-urlencoded\r
@@ -50,3 +57,4 @@ Content-Type: application/x-www-form-urlencoded
 fooo=mooo&pooo=clue&doo=%20%20%20++++
 </protocol>
 </verify>
+</testcase>