Base code merged to SPIN 2.4
[platform/upstream/curl.git] / tests / data / test88
index 00f812c..253b420 100644 (file)
@@ -1,3 +1,12 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP PUT
+HTTP Digest auth
+</keywords>
+</info>
+
 # Server-side
 <reply>
 <servercmd>
@@ -36,7 +45,7 @@ Server: Apache/1.3.27 (Darwin) PHP/4.1.2
 Content-Type: text/html; charset=iso-8859-1\r
 Connection: close\r
 \r
-This IS the real page!\r
+This IS the real page!
 </datacheck>
 
 </reply>
@@ -46,11 +55,15 @@ This IS the real page!
 <server>
 http
 </server>
+<features>
+!SSPI
+crypto
+</features>
  <name>
 HTTP PUT with Digest authorization
  </name>
  <command>
-http://%HOSTIP:%HOSTPORT/88 -T log/put88 -u testuser:testpass --digest
+http://%HOSTIP:%HTTPPORT/88 -T log/put88 -u testuser:testpass --digest
 </command>
 <file name="log/put88">
 This is data we upload with PUT
@@ -66,16 +79,15 @@ four is the number of lines
 ^User-Agent:.*
 </strip>
 <protocol>
-HEAD /88 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
-Pragma: no-cache\r
+PUT /88 HTTP/1.1\r
+Host: %HOSTIP:%HTTPPORT\r
 Accept: */*\r
+Content-Length: 0\r
 \r
 PUT /88 HTTP/1.1\r
 Authorization: Digest username="testuser", realm="testrealm", nonce="1053604145", uri="/88", response="78a49fa53d0c228778297687d4168e71"\r
 User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
-Pragma: no-cache\r
+Host: %HOSTIP:%HTTPPORT\r
 Accept: */*\r
 Content-Length: 85\r
 Expect: 100-continue\r
@@ -86,3 +98,4 @@ line three
 four is the number of lines
 </protocol>
 </verify>
+</testcase>