xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP POST |
| 6 | Content-Length |
| 7 | chunked Transfer-Encoding |
| 8 | </keywords> |
| 9 | </info> |
| 10 | |
| 11 | # Server-side |
| 12 | <reply> |
| 13 | <data nocheck="yes"> |
| 14 | HTTP/1.1 200 OK
|
| 15 | Date: Sun, 19 Jan 2014 18:50:58 GMT
|
| 16 | Server: test-server/fake swsclose
|
| 17 | Connection: close
|
| 18 |
|
| 19 | </data> |
| 20 | </reply> |
| 21 | |
| 22 | # Client-side |
| 23 | <client> |
| 24 | <server> |
| 25 | http |
| 26 | </server> |
| 27 | <tool> |
| 28 | lib%TESTNUMBER |
| 29 | </tool> |
| 30 | <name> |
| 31 | HTTP POST with read callback and unknown data size |
| 32 | </name> |
| 33 | <command> |
| 34 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER |
| 35 | </command> |
| 36 | </client> |
| 37 | |
| 38 | # Verify data after the test has been "shot" |
| 39 | <verify> |
| 40 | # Content-Length header is not present |
| 41 | # Transfer-Encoding header is added automatically |
| 42 | <protocol> |
| 43 | POST /%TESTNUMBER HTTP/1.1
|
| 44 | Host: %HOSTIP:%HTTPPORT
|
| 45 | Accept: */*
|
| 46 | Transfer-Encoding: chunked
|
| 47 | Content-Type: application/x-www-form-urlencoded
|
| 48 | Expect: 100-continue
|
| 49 |
|
| 50 | 1
|
| 51 | d
|
| 52 | 1
|
| 53 | u
|
| 54 | 1
|
| 55 | m
|
| 56 | 1
|
| 57 | m
|
| 58 | 1
|
| 59 | y
|
| 60 | 0
|
| 61 |
|
| 62 | </protocol> |
| 63 | </verify> |
| 64 | </testcase> |