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