xref: /curl/tests/data/test1066 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6</keywords>
7</info>
8
9# Server-side
10<reply>
11<data nocheck="yes">
12HTTP/1.1 200 OK
13Server: thebest/1.0
14Content-Type: text/plain
15Content-Length: 6
16
17first
18</data>
19<data1 nocheck="yes">
20HTTP/1.1 200 OK
21Server: thebest/1.0
22Content-Type: text/plain
23Content-Length: 7
24
25second
26</data1>
27</reply>
28
29# Client-side
30<client>
31<server>
32http
33</server>
34<name>
35HTTP --dump-header - with two URLs
36</name>
37<command>
38http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER0001 --dump-header -
39</command>
40</client>
41
42# Verify data after the test has been "shot"
43<verify>
44<protocol>
45GET /want/%TESTNUMBER HTTP/1.1
46Host: %HOSTIP:%HTTPPORT
47User-Agent: curl/%VERSION
48Accept: */*
49
50GET /want/%TESTNUMBER0001 HTTP/1.1
51Host: %HOSTIP:%HTTPPORT
52User-Agent: curl/%VERSION
53Accept: */*
54
55</protocol>
56<stdout>
57HTTP/1.1 200 OK
58HTTP/1.1 200 OK
59Server: thebest/1.0
60Server: thebest/1.0
61Content-Type: text/plain
62Content-Type: text/plain
63Content-Length: 6
64Content-Length: 6
65
66
67first
68HTTP/1.1 200 OK
69HTTP/1.1 200 OK
70Server: thebest/1.0
71Server: thebest/1.0
72Content-Type: text/plain
73Content-Type: text/plain
74Content-Length: 7
75Content-Length: 7
76
77
78second
79</stdout>
80</verify>
81</testcase>
82