1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP POST 6chunked Transfer-Encoding 7config file 8-A 9</keywords> 10</info> 11# Server-side 12<reply> 13<data> 14HTTP/1.0 200 OK swsclose 15Funny-head: yesyes 16 17This is the proof it works 18</data> 19</reply> 20 21# Client-side 22<client> 23<server> 24http 25</server> 26<name> 27HTTP POST with *HUGE* request and chunked transfer-encoding 28</name> 29 <stdin> 30# 31data "we post this" 32# 33# enforce chunky post! 34header "Transfer-Encoding: chunked" 35# 36# Set the user-agent using a short-option: 37-A "%repeat[99999 x a]%" 38# 39 </stdin> 40<command> 41-K - %HOSTIP:%HTTPPORT/that.site.com/%TESTNUMBER 42</command> 43</client> 44 45# Verify data after the test has been "shot" 46<verify> 47<protocol> 48POST /that.site.com/%TESTNUMBER HTTP/1.1 49Host: %HOSTIP:%HTTPPORT 50User-Agent: %repeat[99999 x a]% 51Accept: */* 52Transfer-Encoding: chunked 53Content-Type: application/x-www-form-urlencoded 54 55%if hyper 56C 57%else 58c 59%endif 60we post this 610 62 63</protocol> 64</verify> 65</testcase> 66