lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 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: Thu, 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/{74,740001}" -o "log/dumpit#1.dump" |
| 47 | </command> |
| 48 | </client> |
| 49 | |
| 50 | # |
| 51 | # Verify data after the test has been "shot" |
| 52 | <verify> |
| 53 | <strip> |
| 54 | ^User-Agent:.* |
| 55 | </strip> |
| 56 | <protocol> |
| 57 | GET /74 HTTP/1.1
|
| 58 | Host: %HOSTIP:%HTTPPORT
|
| 59 | Accept: */*
|
| 60 |
|
| 61 | GET /740001 HTTP/1.1
|
| 62 | Host: %HOSTIP:%HTTPPORT
|
| 63 | Accept: */*
|
| 64 |
|
| 65 | </protocol> |
| 66 | <file name="log/dumpit740001.dump"> |
| 67 | HTTP/1.0 200 OK |
| 68 | Content-Type: text/html |
| 69 | Funny-head: swsclose |
| 70 | Connection: close |
| 71 | |
| 72 | crap data |
| 73 | </file> |
| 74 | </verify> |
| 75 | </testcase> |