1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP POST 6</keywords> 7</info> 8 9# 10# Server-side 11<reply> 12<data nocheck="yes"> 13HTTP/1.1 200 OK 14Date: Tue, 09 Nov 2010 14:49:00 GMT 15Server: test-server/fake 16Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 17ETag: "21025-dc7-39462498" 18Accept-Ranges: bytes 19Content-Length: 6 20Connection: close 21Content-Type: text/html 22Funny-head: yesyes 23 24-foo- 25</data> 26</reply> 27 28# 29# Client-side 30<client> 31<features> 32Debug 33</features> 34<server> 35http 36</server> 37<name> 38HTTP POST with split initial request send 39</name> 40<setenv> 41# The Hound of the Baskervilles 42# 43# make the first send cut off after this amount of data 44CURL_SMALLREQSEND=100 45</setenv> 46<command> 47http://%HOSTIP:%HTTPPORT/012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679/%TESTNUMBER -H "012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679: 300" -d "Mr. Sherlock Holmes, who was usually very late in the mornings, save upon those not infrequent occasions when he was up all night, was seated at the breakfast table." -w '%{size_upload}\n' 48</command> 49</client> 50 51# 52# Verify data after the test has been "shot" 53<verify> 54<protocol nonewline="yes"> 55POST /012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679/%TESTNUMBER HTTP/1.1 56Host: %HOSTIP:%HTTPPORT 57User-Agent: curl/%VERSION 58Accept: */* 59012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679: 300 60Content-Length: 165 61Content-Type: application/x-www-form-urlencoded 62 63Mr. Sherlock Holmes, who was usually very late in the mornings, save upon those not infrequent occasions when he was up all night, was seated at the breakfast table. 64</protocol> 65<stdout> 66HTTP/1.1 200 OK 67Date: Tue, 09 Nov 2010 14:49:00 GMT 68Server: test-server/fake 69Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 70ETag: "21025-dc7-39462498" 71Accept-Ranges: bytes 72Content-Length: 6 73Connection: close 74Content-Type: text/html 75Funny-head: yesyes 76 77-foo- 78165 79</stdout> 80</verify> 81</testcase> 82