xref: /curl/tests/data/test15 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6--write-out
7</keywords>
8</info>
9# Server-side
10<reply>
11<data nocheck="yes">
12HTTP/1.1 200 OK
13Fake: yes
14Fake: yes
15Fake: yes
16Content-Length: 26
17
18Repeated nonsense-headers
19</data>
20</reply>
21
22# Client-side
23<client>
24<server>
25http
26</server>
27<name>
28--write-out test
29</name>
30<command>
31http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER --write-out "%{url_effective} %{http_code} %{size_download}\n"
32</command>
33</client>
34
35# Verify data after the test has been "shot"
36<verify>
37<stdout>
38HTTP/1.1 200 OK
39Fake: yes
40Fake: yes
41Fake: yes
42Content-Length: 26
43
44Repeated nonsense-headers
45http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER 200 26
46</stdout>
47<protocol>
48GET /want/%TESTNUMBER HTTP/1.1
49Host: %HOSTIP:%HTTPPORT
50User-Agent: curl/%VERSION
51Accept: */*
52
53</protocol>
54</verify>
55</testcase>
56