+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP PUT
+HTTP Digest auth
+--anyauth
+</keywords>
+</info>
+
# Server-side
<reply>
<servercmd>
<server>
http
</server>
+<features>
+crypto
+</features>
<name>
HTTP PUT with --anyauth authorization (picking Digest)
</name>
<command>
-http://%HOSTIP:%HOSTPORT/154 -T log/put154 -u testuser:testpass --anyauth
+http://%HOSTIP:%HTTPPORT/154 -T log/put154 -u testuser:testpass --anyauth
</command>
<file name="log/put154">
This is data we upload with PUT
^User-Agent:.*
</strip>
<protocol>
-HEAD /154 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
-Pragma: no-cache\r
+PUT /154 HTTP/1.1\r
+Host: %HOSTIP:%HTTPPORT\r
Accept: */*\r
+Content-Length: 85\r
+Expect: 100-continue\r
\r
PUT /154 HTTP/1.1\r
Authorization: Digest username="testuser", realm="gimme all yer s3cr3ts", nonce="11223344", uri="/154", response="b71551e12d1c456e47d8388ecb2edeca"\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
four is the number of lines
</protocol>
</verify>
+</testcase>