| xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | <testcase> | 
|  | 2 | <info> | 
|  | 3 | <keywords> | 
|  | 4 | HTTP | 
|  | 5 | HTTP PUT | 
|  | 6 | HTTP proxy | 
|  | 7 | HTTP Digest auth | 
|  | 8 | Resume | 
|  | 9 | Content-Range | 
|  | 10 | CUSTOMREQUEST | 
|  | 11 | </keywords> | 
|  | 12 | </info> | 
|  | 13 |  | 
|  | 14 | <reply> | 
|  | 15 | <data> | 
|  | 16 | HTTP/1.1 100 Continue | 
|  | 17 | Server: Microsoft-IIS/5.0 | 
|  | 18 | Date: Sun, 03 Apr 2005 14:57:45 GMT | 
|  | 19 | X-Powered-By: ASP.NET | 
|  | 20 |  | 
|  | 21 | HTTP/1.1 401 authentication please swsbounce | 
|  | 22 | Server: Microsoft-IIS/6.0 | 
|  | 23 | WWW-Authenticate: Digest realm="testrealm", nonce="1053604144" | 
|  | 24 | Content-Type: text/html; charset=iso-8859-1 | 
|  | 25 | Content-Length: 0 | 
|  | 26 |  | 
|  | 27 | </data> | 
|  | 28 | <data1000> | 
|  | 29 | HTTP/1.1 200 A OK | 
|  | 30 | Server: Microsoft-IIS/6.0 | 
|  | 31 | Content-Type: text/html; charset=iso-8859-1 | 
|  | 32 | Content-Length: 3 | 
|  | 33 |  | 
|  | 34 | ok | 
|  | 35 | </data1000> | 
|  | 36 |  | 
|  | 37 | <datacheck> | 
|  | 38 | HTTP/1.1 100 Continue | 
|  | 39 | Server: Microsoft-IIS/5.0 | 
|  | 40 | Date: Sun, 03 Apr 2005 14:57:45 GMT | 
|  | 41 | X-Powered-By: ASP.NET | 
|  | 42 |  | 
|  | 43 | HTTP/1.1 401 authentication please swsbounce | 
|  | 44 | Server: Microsoft-IIS/6.0 | 
|  | 45 | WWW-Authenticate: Digest realm="testrealm", nonce="1053604144" | 
|  | 46 | Content-Type: text/html; charset=iso-8859-1 | 
|  | 47 | Content-Length: 0 | 
|  | 48 |  | 
|  | 49 | HTTP/1.1 200 A OK | 
|  | 50 | Server: Microsoft-IIS/6.0 | 
|  | 51 | Content-Type: text/html; charset=iso-8859-1 | 
|  | 52 | Content-Length: 3 | 
|  | 53 |  | 
|  | 54 | ok | 
|  | 55 | </datacheck> | 
|  | 56 |  | 
|  | 57 | </reply> | 
|  | 58 |  | 
|  | 59 | # Client-side | 
|  | 60 | <client> | 
|  | 61 | # | 
|  | 62 | <server> | 
|  | 63 | http | 
|  | 64 | </server> | 
|  | 65 | <features> | 
|  | 66 | !SSPI | 
|  | 67 | crypto | 
|  | 68 | proxy | 
|  | 69 | </features> | 
|  | 70 | <name> | 
|  | 71 | HTTP PUT with Digest auth, resumed upload and modified method, twice | 
|  | 72 | </name> | 
|  | 73 | <command> | 
|  | 74 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER.upload1 -T log/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER.upload2 -T log/%TESTNUMBER -u auser:apasswd --digest -x  http://%HOSTIP:%HTTPPORT -C 2 -X GET | 
|  | 75 | </command> | 
|  | 76 | <file name="log/%TESTNUMBER"> | 
|  | 77 | test | 
|  | 78 | </file> | 
|  | 79 | </client> | 
|  | 80 |  | 
|  | 81 | # Verify data after the test has been "shot" | 
|  | 82 | <verify> | 
|  | 83 | <protocol> | 
|  | 84 | GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER.upload1 HTTP/1.1 | 
|  | 85 | Host: %HOSTIP:%HTTPPORT | 
|  | 86 | Content-Range: bytes 2-4/5 | 
|  | 87 | User-Agent: curl/%VERSION | 
|  | 88 | Accept: */* | 
|  | 89 | Proxy-Connection: Keep-Alive | 
|  | 90 | Content-Length: 0 | 
|  | 91 |  | 
|  | 92 | GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER.upload1 HTTP/1.1 | 
|  | 93 | Host: %HOSTIP:%HTTPPORT | 
|  | 94 | Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/%TESTNUMBER.upload1", response="198aa9b6acb4b0c71d02a197a5e41f54" | 
|  | 95 | Content-Range: bytes 2-4/5 | 
|  | 96 | User-Agent: curl/%VERSION | 
|  | 97 | Accept: */* | 
|  | 98 | Proxy-Connection: Keep-Alive | 
|  | 99 | Content-Length: 3 | 
|  | 100 | Expect: 100-continue | 
|  | 101 |  | 
|  | 102 | st | 
|  | 103 | GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER.upload2 HTTP/1.1 | 
|  | 104 | Host: %HOSTIP:%HTTPPORT | 
|  | 105 | Content-Range: bytes 2-4/5 | 
|  | 106 | User-Agent: curl/%VERSION | 
|  | 107 | Accept: */* | 
|  | 108 | Proxy-Connection: Keep-Alive | 
|  | 109 | Content-Length: 0 | 
|  | 110 |  | 
|  | 111 | GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER.upload2 HTTP/1.1 | 
|  | 112 | Host: %HOSTIP:%HTTPPORT | 
|  | 113 | Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/%TESTNUMBER.upload2", response="d711f0d2042786d930de635ba0d1a1d0" | 
|  | 114 | Content-Range: bytes 2-4/5 | 
|  | 115 | User-Agent: curl/%VERSION | 
|  | 116 | Accept: */* | 
|  | 117 | Proxy-Connection: Keep-Alive | 
|  | 118 | Content-Length: 3 | 
|  | 119 | Expect: 100-continue | 
|  | 120 |  | 
|  | 121 | st | 
|  | 122 | </protocol> | 
|  | 123 | </verify> | 
|  | 124 | </testcase> |