+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP PUT
+HTTP Digest auth
+</keywords>
+</info>
+
# Server-side
<reply>
+<servercmd>
+auth_required
+</servercmd>
<data>
HTTP/1.1 401 Authorization Required swsclose\r
Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
WWW-Authenticate: Digest realm="testrealm", nonce="1053604145"\r
Content-Type: text/html; charset=iso-8859-1\r
+Connection: close\r
\r
This is not the real page
</data>
HTTP/1.1 200 OK swsclose\r
Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
Content-Type: text/html; charset=iso-8859-1\r
+Connection: close\r
\r
This IS the real page!
</data1000>
Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
WWW-Authenticate: Digest realm="testrealm", nonce="1053604145"\r
Content-Type: text/html; charset=iso-8859-1\r
+Connection: close\r
\r
HTTP/1.1 200 OK swsclose\r
Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
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>
<server>
http
</server>
+<features>
+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
</strip>
<protocol>
PUT /88 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
-Pragma: no-cache\r
-Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\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
-Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r
+Host: %HOSTIP:%HTTPPORT\r
+Accept: */*\r
Content-Length: 85\r
+Expect: 100-continue\r
\r
This is data we upload with PUT
a second line
four is the number of lines
</protocol>
</verify>
+</testcase>