xref: /third_party/curl/tests/data/test2060 (revision 13498266)
113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciHTTP
513498266Sopenharmony_ciHTTP PUT
613498266Sopenharmony_ciHTTP proxy
713498266Sopenharmony_ciHTTP Digest auth
813498266Sopenharmony_ciResume
913498266Sopenharmony_ciContent-Range
1013498266Sopenharmony_ciCUSTOMREQUEST
1113498266Sopenharmony_ci</keywords>
1213498266Sopenharmony_ci</info>
1313498266Sopenharmony_ci
1413498266Sopenharmony_ci# Server-side
1513498266Sopenharmony_ci<reply>
1613498266Sopenharmony_ci<data>
1713498266Sopenharmony_ciHTTP/1.1 100 Continue
1813498266Sopenharmony_ciServer: Microsoft-IIS/5.0
1913498266Sopenharmony_ciDate: Sun, 03 Apr 2005 14:57:45 GMT
2013498266Sopenharmony_ciX-Powered-By: ASP.NET
2113498266Sopenharmony_ci
2213498266Sopenharmony_ciHTTP/1.1 401 authentication please swsbounce
2313498266Sopenharmony_ciServer: Microsoft-IIS/6.0
2413498266Sopenharmony_ciWWW-Authenticate: Digest realm="testrealm", algorithm="SHA-512-256", nonce="1053604144"
2513498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
2613498266Sopenharmony_ciContent-Length: 0
2713498266Sopenharmony_ci
2813498266Sopenharmony_ci</data>
2913498266Sopenharmony_ci<data1000>
3013498266Sopenharmony_ciHTTP/1.1 200 A OK
3113498266Sopenharmony_ciServer: Microsoft-IIS/6.0
3213498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
3313498266Sopenharmony_ciContent-Length: 3
3413498266Sopenharmony_ci
3513498266Sopenharmony_ciok
3613498266Sopenharmony_ci</data1000>
3713498266Sopenharmony_ci
3813498266Sopenharmony_ci<datacheck>
3913498266Sopenharmony_ciHTTP/1.1 100 Continue
4013498266Sopenharmony_ciServer: Microsoft-IIS/5.0
4113498266Sopenharmony_ciDate: Sun, 03 Apr 2005 14:57:45 GMT
4213498266Sopenharmony_ciX-Powered-By: ASP.NET
4313498266Sopenharmony_ci
4413498266Sopenharmony_ciHTTP/1.1 401 authentication please swsbounce
4513498266Sopenharmony_ciServer: Microsoft-IIS/6.0
4613498266Sopenharmony_ciWWW-Authenticate: Digest realm="testrealm", algorithm="SHA-512-256", nonce="1053604144"
4713498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
4813498266Sopenharmony_ciContent-Length: 0
4913498266Sopenharmony_ci
5013498266Sopenharmony_ciHTTP/1.1 200 A OK
5113498266Sopenharmony_ciServer: Microsoft-IIS/6.0
5213498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
5313498266Sopenharmony_ciContent-Length: 3
5413498266Sopenharmony_ci
5513498266Sopenharmony_ciok
5613498266Sopenharmony_ci</datacheck>
5713498266Sopenharmony_ci
5813498266Sopenharmony_ci</reply>
5913498266Sopenharmony_ci
6013498266Sopenharmony_ci# Client-side
6113498266Sopenharmony_ci<client>
6213498266Sopenharmony_ci#
6313498266Sopenharmony_ci<server>
6413498266Sopenharmony_cihttp
6513498266Sopenharmony_ci</server>
6613498266Sopenharmony_ci<features>
6713498266Sopenharmony_ci!SSPI
6813498266Sopenharmony_cicrypto
6913498266Sopenharmony_ciproxy
7013498266Sopenharmony_ci</features>
7113498266Sopenharmony_ci<name>
7213498266Sopenharmony_ciHTTP POST --digest with PUT, resumed upload, modified method, SHA-512-256 and userhash=false
7313498266Sopenharmony_ci</name>
7413498266Sopenharmony_ci<command>
7513498266Sopenharmony_cihttp://%HOSTIP:%HTTPPORT/%TESTNUMBER -u auser:apasswd --digest -T %LOGDIR/%TESTNUMBER -x  http://%HOSTIP:%HTTPPORT -C 2 -X GET
7613498266Sopenharmony_ci</command>
7713498266Sopenharmony_ci<file name="%LOGDIR/%TESTNUMBER">
7813498266Sopenharmony_citest
7913498266Sopenharmony_ci</file>
8013498266Sopenharmony_ci</client>
8113498266Sopenharmony_ci
8213498266Sopenharmony_ci# Verify data after the test has been "shot"
8313498266Sopenharmony_ci<verify>
8413498266Sopenharmony_ci<protocol>
8513498266Sopenharmony_ciGET http://%HOSTIP:%HTTPPORT/%TESTNUMBER HTTP/1.1
8613498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
8713498266Sopenharmony_ciContent-Range: bytes 2-4/5
8813498266Sopenharmony_ciUser-Agent: curl/%VERSION
8913498266Sopenharmony_ciAccept: */*
9013498266Sopenharmony_ciProxy-Connection: Keep-Alive
9113498266Sopenharmony_ciContent-Length: 0
9213498266Sopenharmony_ci
9313498266Sopenharmony_ciGET http://%HOSTIP:%HTTPPORT/%TESTNUMBER HTTP/1.1
9413498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
9513498266Sopenharmony_ciAuthorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/%TESTNUMBER", response="3ce1e25ffa611bdbe90e2ab367b9602fa223db9f6de76ac667f0d6157e2178a6", algorithm=SHA-512-256
9613498266Sopenharmony_ciContent-Range: bytes 2-4/5
9713498266Sopenharmony_ciUser-Agent: curl/%VERSION
9813498266Sopenharmony_ciAccept: */*
9913498266Sopenharmony_ciProxy-Connection: Keep-Alive
10013498266Sopenharmony_ciContent-Length: 3
10113498266Sopenharmony_ci
10213498266Sopenharmony_cist
10313498266Sopenharmony_ci</protocol>
10413498266Sopenharmony_ci</verify>
10513498266Sopenharmony_ci</testcase>
106