1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6[] range 7</keywords> 8</info> 9# 10# Server-side 11<reply> 12<data nocheck="yes"> 13HTTP/1.1 200 OK 14Date: Thu, 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<data1> 27HTTP/1.0 200 OK 28Content-Type: text/html 29Funny-head: swsclose 30 31crap data 32</data1> 33<data2> 34HTTP/1.0 200 OK 35Content-Type: text/html 36Funny-head: swsclose 37 38crap data 39</data2> 40<data3> 41HTTP/1.0 200 OK 42Content-Type: text/html 43Funny-head: swsclose 44 45crap data 46</data3> 47</reply> 48 49# 50# Client-side 51<client> 52<server> 53http 54</server> 55 <name> 56HTTP, urlglob []-retrieval and -o #[num] usage 57 </name> 58 <command option="no-output"> 59"http://%HOSTIP:%HTTPPORT/[860001-860003]" -o "log/dumpit#1.dump" 60</command> 61</client> 62 63# 64# Verify data after the test has been "shot" 65<verify> 66<strip> 67^User-Agent:.* 68</strip> 69<protocol> 70GET /860001 HTTP/1.1 71User-Agent: curl/7.10.7-pre4 (i686-pc-linux-gnu) libcurl/7.10.7-pre4 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS 72Host: %HOSTIP:%HTTPPORT 73Accept: */* 74 75GET /860002 HTTP/1.1 76User-Agent: curl/7.10.7-pre4 (i686-pc-linux-gnu) libcurl/7.10.7-pre4 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS 77Host: %HOSTIP:%HTTPPORT 78Accept: */* 79 80GET /860003 HTTP/1.1 81User-Agent: curl/7.10.7-pre4 (i686-pc-linux-gnu) libcurl/7.10.7-pre4 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS 82Host: %HOSTIP:%HTTPPORT 83Accept: */* 84 85</protocol> 86 87# we check the second file 88<file name="log/dumpit860002.dump"> 89HTTP/1.0 200 OK 90Content-Type: text/html 91Funny-head: swsclose 92 93crap data 94</file> 95</verify> 96</testcase> 97