xref: /curl/tests/data/test1439 (revision e2b4df7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5--write-out
6</keywords>
7</info>
8# Server-side
9<reply>
10<data nocheck="yes">
11HTTP/1.1 200 OK
12Date: Tue, 09 Nov 2010 14:49:00 GMT
13Content-Length: 9
14Connection: close
15Content-Type: text/plain
16
17testdata
18</data>
19
20</reply>
21
22# Client-side
23<client>
24<server>
25http
26</server>
27
28<name>
29Check if %{http_version} returns 1.1
30</name>
31<command>
32http://%HOSTIP:%HTTPPORT/%TESTNUMBER --write-out '%{http_version}'
33</command>
34</client>
35
36# Verify data
37<verify>
38<stdout nonewline="yes">
39HTTP/1.1 200 OK
40Date: Tue, 09 Nov 2010 14:49:00 GMT
41Content-Length: 9
42Connection: close
43Content-Type: text/plain
44
45testdata
461.1
47</stdout>
48<protocol>
49GET /%TESTNUMBER HTTP/1.1
50Host: %HOSTIP:%HTTPPORT
51User-Agent: curl/%VERSION
52Accept: */*
53
54</protocol>
55</verify>
56</testcase>
57