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.0 200 OK swsclose |
| 12 | Date: Tue, 09 Nov 2010 14:49:00 GMT |
| 13 | Server: test-server/fake |
| 14 | |
| 15 | blablabla |
| 16 | |
| 17 | </data> |
| 18 | </reply> |
| 19 | |
| 20 | # Client-side |
| 21 | <client> |
| 22 | <server> |
| 23 | http |
| 24 | </server> |
| 25 | <name> |
| 26 | HTTP PUT from file with weird letters |
| 27 | </name> |
| 28 | <command> |
| 29 | http://%HOSTIP:%HTTPPORT/we/want/ -T log/%TESTNUMBERte[]st.txt -g |
| 30 | </command> |
| 31 | <file name="log/%TESTNUMBERte[]st.txt"> |
| 32 | a few bytes |
| 33 | </file> |
| 34 | </client> |
| 35 | |
| 36 | # Verify data after the test has been "shot" |
| 37 | <verify> |
| 38 | <protocol> |
| 39 | PUT /we/want/%TESTNUMBERte%5b%5dst.txt HTTP/1.1
|
| 40 | Host: %HOSTIP:%HTTPPORT
|
| 41 | User-Agent: curl/%VERSION
|
| 42 | Accept: */*
|
| 43 | Content-Length: 12
|
| 44 | Expect: 100-continue
|
| 45 |
|
| 46 | a few bytes |
| 47 | </protocol> |
| 48 | </verify> |
| 49 | </testcase> |