• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6globbing
7{} list
8</keywords>
9</info>
10# Server-side
11<reply>
12<data1>
13HTTP/1.1 200 OK
14Funny-head: yesyes
15Content-Length: 15
16
17the number one
18</data1>
19<data2>
20HTTP/1.1 200 OK
21Funny-head: yesyes
22Content-Length: 16
23
24two is nice too
25</data2>
26</reply>
27
28# Client-side
29<client>
30<server>
31http
32</server>
33 <name>
34multiple requests using {}{} in the URL
35 </name>
36 <command>
37"%HOSTIP:%HTTPPORT/{%TESTNUMBER,%TESTNUMBER}{0001,0002}"
38</command>
39</client>
40
41# Verify data after the test has been "shot"
42<verify>
43<protocol>
44GET /%TESTNUMBER0001 HTTP/1.1
45Host: %HOSTIP:%HTTPPORT
46User-Agent: curl/%VERSION
47Accept: */*
48
49GET /%TESTNUMBER0002 HTTP/1.1
50Host: %HOSTIP:%HTTPPORT
51User-Agent: curl/%VERSION
52Accept: */*
53
54GET /%TESTNUMBER0001 HTTP/1.1
55Host: %HOSTIP:%HTTPPORT
56User-Agent: curl/%VERSION
57Accept: */*
58
59GET /%TESTNUMBER0002 HTTP/1.1
60Host: %HOSTIP:%HTTPPORT
61User-Agent: curl/%VERSION
62Accept: */*
63
64</protocol>
65<stdout>
66--_curl_--%HOSTIP:%HTTPPORT/%TESTNUMBER0001
67HTTP/1.1 200 OK
68Funny-head: yesyes
69Content-Length: 15
70
71the number one
72--_curl_--%HOSTIP:%HTTPPORT/%TESTNUMBER0002
73HTTP/1.1 200 OK
74Funny-head: yesyes
75Content-Length: 16
76
77two is nice too
78--_curl_--%HOSTIP:%HTTPPORT/%TESTNUMBER0001
79HTTP/1.1 200 OK
80Funny-head: yesyes
81Content-Length: 15
82
83the number one
84--_curl_--%HOSTIP:%HTTPPORT/%TESTNUMBER0002
85HTTP/1.1 200 OK
86Funny-head: yesyes
87Content-Length: 16
88
89two is nice too
90</stdout>
91</verify>
92</testcase>
93