xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP POST |
| 6 | POST callback |
| 7 | huge request header |
| 8 | </keywords> |
| 9 | </info> |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | |
| 13 | <data> |
| 14 | HTTP/1.1 200 Fine!
|
| 15 | Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
| 16 | Content-Length: 6
|
| 17 |
|
| 18 | hello |
| 19 | </data> |
| 20 | |
| 21 | </reply> |
| 22 | |
| 23 | # Client-side |
| 24 | <client> |
| 25 | <server> |
| 26 | http |
| 27 | </server> |
| 28 | # tool to use |
| 29 | <tool> |
| 30 | lib%TESTNUMBER |
| 31 | </tool> |
| 32 | <features> |
| 33 | </features> |
| 34 | <name> |
| 35 | HTTP post with huge request headers and post data from callback |
| 36 | </name> |
| 37 | <command> |
| 38 | http://%HOSTIP:%HTTPPORT/path/%TESTNUMBER |
| 39 | </command> |
| 40 | </client> |
| 41 | |
| 42 | # Verify data after the test has been "shot" |
| 43 | <verify> |
| 44 | <protocol nonewline="yes"> |
| 45 | POST /path/%TESTNUMBER HTTP/1.1
|
| 46 | Host: %HOSTIP:%HTTPPORT
|
| 47 | Accept: */*
|
| 48 | Header0: %repeat[5000 x A]%
|
| 49 | Header1: %repeat[5000 x A]%
|
| 50 | Header2: %repeat[5000 x A]%
|
| 51 | Header3: %repeat[5000 x A]%
|
| 52 | Header4: %repeat[5000 x A]%
|
| 53 | Header5: %repeat[5000 x A]%
|
| 54 | Header6: %repeat[5000 x A]%
|
| 55 | Header7: %repeat[5000 x A]%
|
| 56 | Content-Length: 40960
|
| 57 | Content-Type: application/x-www-form-urlencoded
|
| 58 |
|
| 59 | %repeat[40960 x A]% |
| 60 | </protocol> |
| 61 | </verify> |
| 62 | </testcase> |