test1598 (921B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP POST 6 CURLOPT_HTTPTRAILER_FUNCTION 7 CURLOPT_HTTPTRAILER_DATA 8 </keywords> 9 </info> 10 11 # Server-side 12 <reply> 13 <data nocheck="yes"> 14 HTTP/1.0 200 OK swsclose 15 Date: Tue, 09 Nov 2010 14:49:00 GMT 16 Server: test-server/fake 17 </data> 18 </reply> 19 # Client-side 20 <client> 21 <features> 22 http 23 </features> 24 <server> 25 http 26 </server> 27 <name> 28 HTTP POST with trailers at the end 29 </name> 30 <tool> 31 lib%TESTNUMBER 32 </tool> 33 <command> 34 http://%HOSTIP:%HTTPPORT/bzz/%TESTNUMBER 35 </command> 36 <stdin> 37 more than one byte 38 </stdin> 39 </client> 40 41 # Verify data after the test has been "shot" 42 <verify> 43 <protocol> 44 POST /bzz/%TESTNUMBER HTTP/1.1 45 Host: %HOSTIP:%HTTPPORT 46 Accept: */* 47 Trailer: my-super-awesome-trailer, my-other-awesome-trailer 48 Transfer-Encoding: chunked 49 Content-Type: application/x-www-form-urlencoded 50 51 11 52 xxx=yyy&aaa=bbbbb 53 0 54 my-super-awesome-trailer: trail1 55 my-other-awesome-trailer: trail2 56 57 </protocol> 58 </verify> 59 </testcase>