2007-08-18 04:21:32 +08:00
|
|
|
<testcase>
|
2007-08-18 06:17:23 +08:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
2007-10-12 09:44:22 +08:00
|
|
|
HTTP PUT
|
2008-09-30 06:44:04 +08:00
|
|
|
HTTP proxy
|
|
|
|
HTTP Digest auth
|
2007-08-18 06:17:23 +08:00
|
|
|
Resume
|
2007-10-12 09:44:22 +08:00
|
|
|
Content-Range
|
2007-08-18 06:17:23 +08:00
|
|
|
CUSTOMREQUEST
|
|
|
|
</keywords>
|
|
|
|
</info>
|
2007-10-12 09:44:22 +08:00
|
|
|
|
2007-08-18 04:21:32 +08:00
|
|
|
# Server-side
|
|
|
|
<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 16:14:44 +08:00
|
|
|
<features>
|
2014-11-07 03:57:16 +08:00
|
|
|
!SSPI
|
2014-02-17 16:14:44 +08:00
|
|
|
crypto
|
|
|
|
</features>
|
2007-08-18 04:21:32 +08:00
|
|
|
<name>
|
|
|
|
HTTP POST --digest with PUT and resumed upload and modified method
|
|
|
|
</name>
|
|
|
|
<command>
|
2007-08-18 06:11:25 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/1001 -u auser:apasswd --digest -T log/1001 -x http://%HOSTIP:%HTTPPORT -C 2 -X GET
|
2007-08-18 04:21:32 +08:00
|
|
|
</command>
|
2007-08-18 06:11:25 +08:00
|
|
|
<file name="log/1001">
|
2007-08-18 04:21:32 +08:00
|
|
|
test
|
|
|
|
</file>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strip>
|
|
|
|
^User-Agent:.*
|
|
|
|
</strip>
|
|
|
|
<protocol>
|
2007-08-18 06:11:25 +08:00
|
|
|
GET http://%HOSTIP:%HTTPPORT/1001 HTTP/1.1
|
2015-03-12 07:50:46 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2007-08-18 04:21:32 +08: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
|
|
|
|
Accept: */*
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2007-08-18 04:21:32 +08:00
|
|
|
Content-Length: 0
|
|
|
|
|
2007-08-18 06:11:25 +08:00
|
|
|
GET http://%HOSTIP:%HTTPPORT/1001 HTTP/1.1
|
2015-03-12 07:50:46 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2007-08-18 06:11:25 +08:00
|
|
|
Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/1001", response="6af4d89c952f4dd4cc215a6878dc499d"
|
2007-08-18 04:21:32 +08:00
|
|
|
Content-Range: bytes 2-4/5
|
|
|
|
Accept: */*
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2007-08-18 04:21:32 +08:00
|
|
|
Content-Length: 3
|
|
|
|
Expect: 100-continue
|
|
|
|
|
|
|
|
st
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|