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