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