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-08-18 04:21:32 +08: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 16:14:44 +08:00
|
|
|
<features>
|
2014-11-07 03:57:16 +08:00
|
|
|
!SSPI
|
2014-02-17 16:14:44 +08:00
|
|
|
crypto
|
2019-10-15 04:29:19 +08:00
|
|
|
proxy
|
2014-02-17 16:14:44 +08:00
|
|
|
</features>
|
2007-08-18 04:21:32 +08:00
|
|
|
<name>
|
2019-04-20 00:25:18 +08:00
|
|
|
HTTP PUT with Digest auth, resumed upload and modified method, twice
|
2007-08-18 04:21:32 +08:00
|
|
|
</name>
|
|
|
|
<command>
|
2007-08-18 06:11:25 +08: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-18 04:21:32 +08:00
|
|
|
</command>
|
2007-08-18 06:11:25 +08:00
|
|
|
<file name="log/1002">
|
2007-08-18 04:21:32 +08:00
|
|
|
test
|
|
|
|
</file>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2007-08-18 06:11:25 +08:00
|
|
|
GET http://%HOSTIP:%HTTPPORT/1002.upload1 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
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2007-08-18 04:21:32 +08:00
|
|
|
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/1002.upload1 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="/1002.upload1", response="198aa9b6acb4b0c71d02a197a5e41f54"
|
2007-08-18 04:21:32 +08:00
|
|
|
Content-Range: bytes 2-4/5
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2007-08-18 04:21:32 +08:00
|
|
|
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
|
2019-07-21 01:14:00 +08:00
|
|
|
GET http://%HOSTIP:%HTTPPORT/1002.upload2 HTTP/1.1
|
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Content-Range: bytes 2-4/5
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2019-07-21 01:14:00 +08:00
|
|
|
Accept: */*
|
|
|
|
Proxy-Connection: Keep-Alive
|
|
|
|
Content-Length: 0
|
|
|
|
|
2007-08-18 06:11:25 +08:00
|
|
|
GET http://%HOSTIP:%HTTPPORT/1002.upload2 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="/1002.upload2", response="d711f0d2042786d930de635ba0d1a1d0"
|
2007-08-18 04:21:32 +08:00
|
|
|
Content-Range: bytes 2-4/5
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2007-08-18 04:21:32 +08:00
|
|
|
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>
|