test35 (863B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP POST 6 --data-binary 7 </keywords> 8 </info> 9 <reply> 10 <data> 11 HTTP/1.1 200 OK swsclose 12 Date: Tue, 09 Nov 2010 14:49:00 GMT 13 Server: test-server/fake 14 15 blablabla 16 17 </data> 18 </reply> 19 20 # Client-side 21 <client> 22 <server> 23 http 24 </server> 25 <name> 26 HTTP POST binary data with embedded NUL 27 </name> 28 <command> 29 http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER --data-binary @%LOGDIR/test%TESTNUMBER.txt 30 </command> 31 <file name="%LOGDIR/test%TESTNUMBER.txt"> 32 %hex[This%00 is binary data with an embedded NUL byte]hex% 33 </file> 34 </client> 35 36 # Verify data after the test has been "shot" 37 <verify> 38 <protocol> 39 POST /we/want/%TESTNUMBER HTTP/1.1 40 Host: %HOSTIP:%HTTPPORT 41 User-Agent: curl/%VERSION 42 Accept: */* 43 Content-Length: 47 44 Content-Type: application/x-www-form-urlencoded 45 46 %hex[This%00 is binary data with an embedded NUL byte]hex% 47 </protocol> 48 </verify> 49 </testcase>