• 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<data nocheck="yes">
13HTTP/1.1 200 OK
14Funny-head: yesyes
15Content-Length: 4
16
17moo
18</data>
19<data2>
20HTTP/1.1 200 OK
21Funny-head: yesyes
22Content-Length: 4
23
24foo
25</data2>
26<data3>
27HTTP/1.1 200 OK
28Funny-head: yesyes
29Content-Length: 4
30
31hoo
32</data3>
33</reply>
34
35# Client-side
36<client>
37<server>
38http
39</server>
40 <name>
41multiple requests using {} in URL
42 </name>
43 <command>
44"%HOSTIP:%HTTPPORT/{18,180002,180003}"
45</command>
46</client>
47
48# Verify data after the test has been "shot"
49<verify>
50<strip>
51^User-Agent:.*
52</strip>
53<protocol>
54GET /18 HTTP/1.1
55User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
56Host: %HOSTIP:%HTTPPORT
57Accept: */*
58
59GET /180002 HTTP/1.1
60User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
61Host: %HOSTIP:%HTTPPORT
62Accept: */*
63
64GET /180003 HTTP/1.1
65User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
66Host: %HOSTIP:%HTTPPORT
67Accept: */*
68
69</protocol>
70<stdout>
71--_curl_--%HOSTIP:%HTTPPORT/18
72HTTP/1.1 200 OK
73Funny-head: yesyes
74Content-Length: 4
75
76moo
77--_curl_--%HOSTIP:%HTTPPORT/180002
78HTTP/1.1 200 OK
79Funny-head: yesyes
80Content-Length: 4
81
82foo
83--_curl_--%HOSTIP:%HTTPPORT/180003
84HTTP/1.1 200 OK
85Funny-head: yesyes
86Content-Length: 4
87
88hoo
89</stdout>
90</verify>
91</testcase>
92