• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6globbing
7{} list
8</keywords>
9</info>
10#
11# Server-side
12<reply>
13<data nocheck="yes">
14HTTP/1.1 200 OK
15Date: Thu, 09 Nov 2010 14:49:00 GMT
16Server: test-server/fake
17Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
18ETag: "21025-dc7-39462498"
19Accept-Ranges: bytes
20Content-Length: 6
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
30Connection: close
31
32crap data
33</data1>
34</reply>
35
36#
37# Client-side
38<client>
39<server>
40http
41</server>
42 <name>
43HTTP, 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>
57GET /74 HTTP/1.1
58Host: %HOSTIP:%HTTPPORT
59Accept: */*
60
61GET /740001 HTTP/1.1
62Host: %HOSTIP:%HTTPPORT
63Accept: */*
64
65</protocol>
66<file name="log/dumpit740001.dump">
67HTTP/1.0 200 OK
68Content-Type: text/html
69Funny-head: swsclose
70Connection: close
71
72crap data
73</file>
74</verify>
75</testcase>
76