test74 (1175B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 globbing 7 {} list 8 </keywords> 9 </info> 10 # 11 # Server-side 12 <reply> 13 <data nocheck="yes"> 14 HTTP/1.1 200 OK 15 Date: Tue, 09 Nov 2010 14:49:00 GMT 16 Server: test-server/fake 17 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 18 ETag: "21025-dc7-39462498" 19 Accept-Ranges: bytes 20 Content-Length: 6 21 Content-Type: text/html 22 Funny-head: yesyes 23 24 -foo- 25 </data> 26 <data1> 27 HTTP/1.0 200 OK 28 Content-Type: text/html 29 Funny-head: swsclose 30 Connection: close 31 32 crap data 33 </data1> 34 </reply> 35 36 # 37 # Client-side 38 <client> 39 <server> 40 http 41 </server> 42 <name> 43 HTTP, urlglob {}-retrieval and -o #[num] usage 44 </name> 45 <command option="no-output"> 46 "http://%HOSTIP:%HTTPPORT/{%TESTNUMBER,%TESTNUMBER0001}" -o "%LOGDIR/dumpit#1.dump" 47 </command> 48 </client> 49 50 # 51 # Verify data after the test has been "shot" 52 <verify> 53 <protocol> 54 GET /%TESTNUMBER HTTP/1.1 55 Host: %HOSTIP:%HTTPPORT 56 User-Agent: curl/%VERSION 57 Accept: */* 58 59 GET /%TESTNUMBER0001 HTTP/1.1 60 Host: %HOSTIP:%HTTPPORT 61 User-Agent: curl/%VERSION 62 Accept: */* 63 64 </protocol> 65 <file name="%LOGDIR/dumpit%TESTNUMBER0001.dump"> 66 HTTP/1.0 200 OK 67 Content-Type: text/html 68 Funny-head: swsclose 69 Connection: close 70 71 crap data 72 </file> 73 </verify> 74 </testcase>