1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP POST 6--json 7</keywords> 8</info> 9# 10# Server-side 11<reply> 12<data> 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<data2> 27HTTP/1.1 200 OK 28Date: Tue, 09 Nov 2010 14:49:00 GMT 29Server: test-server/fake 30Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 31ETag: "21025-dc7-39462498" 32Accept-Ranges: bytes 33Content-Length: 6 34Connection: close 35Content-Type: text/html 36Funny-head: yesyes 37 38hello 39</data2> 40</reply> 41 42# 43# Client-side 44<client> 45<server> 46http 47</server> 48<name> 49HTTP with --json + --next 50</name> 51<command> 52--json '{ "drink": "coffe" }' http://%HOSTIP:%HTTPPORT/%TESTNUMBER --next http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002 53</command> 54</client> 55 56# 57# Verify data after the test has been "shot" 58<verify> 59<protocol> 60POST /%TESTNUMBER HTTP/1.1 61Host: %HOSTIP:%HTTPPORT 62User-Agent: curl/%VERSION 63Content-Type: application/json 64Accept: application/json 65Content-Length: 20 66 67{ "drink": "coffe" }GET /%TESTNUMBER0002 HTTP/1.1 68Host: %HOSTIP:%HTTPPORT 69User-Agent: curl/%VERSION 70Accept: */* 71 72</protocol> 73</verify> 74</testcase> 75