xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP PUT |
| 6 | </keywords> |
| 7 | </info> |
| 8 | # Server-side |
| 9 | <reply> |
| 10 | <data> |
| 11 | HTTP/1.1 100 Continue |
| 12 | |
| 13 | HTTP/1.1 401 Bad Auth swsclose |
| 14 | Date: Tue, 09 Nov 2010 14:49:00 GMT |
| 15 | WWW-Authenticate: Basic Realm=authenticate |
| 16 | Server: test-server/fake |
| 17 | |
| 18 | </data> |
| 19 | |
| 20 | </reply> |
| 21 | |
| 22 | # Client-side |
| 23 | <client> |
| 24 | <server> |
| 25 | http |
| 26 | </server> |
| 27 | <name> |
| 28 | HTTP PUT from file with 100 + 401 responses and -f without auth given |
| 29 | </name> |
| 30 | <command> |
| 31 | http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -f -T log/test%TESTNUMBER.txt |
| 32 | </command> |
| 33 | <file name="log/test%TESTNUMBER.txt"> |
| 34 | Weird |
| 35 | file |
| 36 | to |
| 37 | upload |
| 38 | </file> |
| 39 | </client> |
| 40 | |
| 41 | # Verify data after the test has been "shot" |
| 42 | <verify> |
| 43 | <errorcode> |
| 44 | 22 |
| 45 | </errorcode> |
| 46 | <protocol> |
| 47 | PUT /we/want/%TESTNUMBER HTTP/1.1
|
| 48 | Host: %HOSTIP:%HTTPPORT
|
| 49 | User-Agent: curl/%VERSION
|
| 50 | Accept: */*
|
| 51 | Content-Length: 38
|
| 52 | Expect: 100-continue
|
| 53 |
|
| 54 | Weird |
| 55 | file |
| 56 | to |
| 57 | upload |
| 58 | </protocol> |
| 59 | </verify> |
| 60 | </testcase> |