1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 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: 445 20Connection: close 21Content-Type: text/html 22Funny-head: yesyes 23 24Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum 25</data> 26</reply> 27 28# 29# Client-side 30<client> 31<precheck> 32/usr/bin/which jsonlint-php >log/%TESTNUMBER-check 33</precheck> 34<server> 35http 36</server> 37<features> 38debug 39proxy 40</features> 41<setenv> 42CURL_TIME=13 43CURL_DEBUG_SIZE=4019 44CURL_VERSION=curl-unit-test-fake-version 45</setenv> 46<name> 47Verify JSON output 48</name> 49<command option="no-include"> 50http://%HOSTIP:%HTTPPORT/%TESTNUMBER -s --write-out '%{json}' -o log/out972 | jsonlint-php -q 51</command> 52</client> 53 54# 55# Verify data after the test has been "shot" 56<verify> 57<protocol> 58GET /%TESTNUMBER HTTP/1.1 59Host: %HOSTIP:%HTTPPORT 60User-Agent: curl/%VERSION 61Accept: */* 62 63</protocol> 64</verify> 65</testcase> 66