Debian Codegraph @

curl/tests/data/test18

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