xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | globbing |
| 7 | [] range |
| 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 | Connection: close |
| 22 | Content-Type: text/html |
| 23 | Funny-head: yesyes |
| 24 | |
| 25 | -foo- |
| 26 | </data> |
| 27 | <data1> |
| 28 | HTTP/1.0 200 OK |
| 29 | Content-Type: text/html |
| 30 | Funny-head: swsclose |
| 31 | |
| 32 | crap data |
| 33 | </data1> |
| 34 | <data2> |
| 35 | HTTP/1.0 200 OK |
| 36 | Content-Type: text/html |
| 37 | Funny-head: swsclose |
| 38 | |
| 39 | crap data |
| 40 | </data2> |
| 41 | <data3> |
| 42 | HTTP/1.0 200 OK |
| 43 | Content-Type: text/html |
| 44 | Funny-head: swsclose |
| 45 | |
| 46 | crap data |
| 47 | </data3> |
| 48 | </reply> |
| 49 | |
| 50 | # |
| 51 | # Client-side |
| 52 | <client> |
| 53 | <server> |
| 54 | http |
| 55 | </server> |
| 56 | <name> |
| 57 | HTTP, urlglob []-retrieval and -o #[num] usage |
| 58 | </name> |
| 59 | <command option="no-output"> |
| 60 | "http://%HOSTIP:%HTTPPORT/[%TESTNUMBER0001-%TESTNUMBER0003]" -o "log/dumpit#1.dump" |
| 61 | </command> |
| 62 | </client> |
| 63 | |
| 64 | # |
| 65 | # Verify data after the test has been "shot" |
| 66 | <verify> |
| 67 | <protocol> |
| 68 | GET /%TESTNUMBER0001 HTTP/1.1
|
| 69 | Host: %HOSTIP:%HTTPPORT
|
| 70 | User-Agent: curl/%VERSION
|
| 71 | Accept: */*
|
| 72 |
|
| 73 | GET /%TESTNUMBER0002 HTTP/1.1
|
| 74 | Host: %HOSTIP:%HTTPPORT
|
| 75 | User-Agent: curl/%VERSION
|
| 76 | Accept: */*
|
| 77 |
|
| 78 | GET /%TESTNUMBER0003 HTTP/1.1
|
| 79 | Host: %HOSTIP:%HTTPPORT
|
| 80 | User-Agent: curl/%VERSION
|
| 81 | Accept: */*
|
| 82 |
|
| 83 | </protocol> |
| 84 | |
| 85 | # we check the second file |
| 86 | <file name="log/dumpit%TESTNUMBER0002.dump"> |
| 87 | HTTP/1.0 200 OK |
| 88 | Content-Type: text/html |
| 89 | Funny-head: swsclose |
| 90 | |
| 91 | crap data |
| 92 | </file> |
| 93 | </verify> |
| 94 | </testcase> |