2007-08-17 22:21:32 +02:00
|
|
|
<testcase>
|
2007-08-18 00:17:23 +02:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
2007-10-12 03:44:22 +02:00
|
|
|
HTTP PUT
|
2008-09-30 00:44:04 +02:00
|
|
|
HTTP proxy
|
|
|
|
HTTP Digest auth
|
2007-08-18 00:17:23 +02:00
|
|
|
Resume
|
2007-10-12 03:44:22 +02:00
|
|
|
Content-Range
|
2007-08-18 00:17:23 +02:00
|
|
|
CUSTOMREQUEST
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
2007-08-17 22:21:32 +02:00
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 100 Continue
|
|
|
|
Server: Microsoft-IIS/5.0
|
|
|
|
Date: Sun, 03 Apr 2005 14:57:45 GMT
|
|
|
|
X-Powered-By: ASP.NET
|
|
|
|
|
|
|
|
HTTP/1.1 401 authentication please swsbounce
|
|
|
|
Server: Microsoft-IIS/6.0
|
|
|
|
WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
|
|
|
|
Content-Type: text/html; charset=iso-8859-1
|
|
|
|
Content-Length: 0
|
|
|
|
|
|
|
|
</data>
|
|
|
|
<data1000>
|
|
|
|
HTTP/1.1 200 A OK
|
|
|
|
Server: Microsoft-IIS/6.0
|
|
|
|
Content-Type: text/html; charset=iso-8859-1
|
|
|
|
Content-Length: 3
|
|
|
|
|
|
|
|
ok
|
|
|
|
</data1000>
|
|
|
|
|
|
|
|
<datacheck>
|
|
|
|
HTTP/1.1 100 Continue
|
|
|
|
Server: Microsoft-IIS/5.0
|
|
|
|
Date: Sun, 03 Apr 2005 14:57:45 GMT
|
|
|
|
X-Powered-By: ASP.NET
|
|
|
|
|
|
|
|
HTTP/1.1 401 authentication please swsbounce
|
|
|
|
Server: Microsoft-IIS/6.0
|
|
|
|
WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
|
|
|
|
Content-Type: text/html; charset=iso-8859-1
|
|
|
|
Content-Length: 0
|
|
|
|
|
|
|
|
HTTP/1.1 200 A OK
|
|
|
|
Server: Microsoft-IIS/6.0
|
|
|
|
Content-Type: text/html; charset=iso-8859-1
|
|
|
|
Content-Length: 3
|
|
|
|
|
|
|
|
ok
|
|
|
|
</datacheck>
|
|
|
|
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
#
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
2014-02-17 09:14:44 +01:00
|
|
|
<features>
|
|
|
|
crypto
|
|
|
|
</features>
|
2007-08-17 22:21:32 +02:00
|
|
|
<name>
|
|
|
|
HTTP POST --digest with PUT and resumed upload and modified method, twice
|
|
|
|
</name>
|
|
|
|
<command>
|
2007-08-18 00:11:25 +02:00
|
|
|
http://%HOSTIP:%HTTPPORT/1002.upload1 -T log/1002 http://%HOSTIP:%HTTPPORT/1002.upload2 -T log/1002 -u auser:apasswd --digest -x http://%HOSTIP:%HTTPPORT -C 2 -X GET
|
2007-08-17 22:21:32 +02:00
|
|
|
</command>
|
2007-08-18 00:11:25 +02:00
|
|
|
<file name="log/1002">
|
2007-08-17 22:21:32 +02:00
|
|
|
test
|
|
|
|
</file>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strip>
|
|
|
|
^User-Agent:.*
|
|
|
|
</strip>
|
|
|
|
<protocol>
|
2007-08-18 00:11:25 +02:00
|
|
|
GET http://%HOSTIP:%HTTPPORT/1002.upload1 HTTP/1.1
|
2007-08-17 22:21:32 +02:00
|
|
|
Content-Range: bytes 2-4/5
|
|
|
|
User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6
|
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Accept: */*
|
|
|
|
Proxy-Connection: Keep-Alive
|
|
|
|
Content-Length: 0
|
|
|
|
|
2007-08-18 00:11:25 +02:00
|
|
|
GET http://%HOSTIP:%HTTPPORT/1002.upload1 HTTP/1.1
|
|
|
|
Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/1002.upload1", response="198aa9b6acb4b0c71d02a197a5e41f54"
|
2007-08-17 22:21:32 +02:00
|
|
|
Content-Range: bytes 2-4/5
|
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Accept: */*
|
|
|
|
Proxy-Connection: Keep-Alive
|
|
|
|
Content-Length: 3
|
|
|
|
Expect: 100-continue
|
|
|
|
|
|
|
|
st
|
2007-08-18 00:11:25 +02:00
|
|
|
GET http://%HOSTIP:%HTTPPORT/1002.upload2 HTTP/1.1
|
|
|
|
Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/1002.upload2", response="d711f0d2042786d930de635ba0d1a1d0"
|
2007-08-17 22:21:32 +02:00
|
|
|
Content-Range: bytes 2-4/5
|
|
|
|
User-Agent: curl/7.16.1
|
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Accept: */*
|
|
|
|
Proxy-Connection: Keep-Alive
|
|
|
|
Content-Length: 3
|
|
|
|
Expect: 100-continue
|
|
|
|
|
|
|
|
st
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|