xref: /curl/tests/data/test1670 (revision e7a021e1)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6-w
7%header
8</keywords>
9</info>
10
11#
12# Server-side
13<reply>
14<data nocheck="yes">
15HTTP/1.1 200 OK
16Date: Tue, 09 Nov 2010 14:49:00 GMT
17Server: test-server/fake
18Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
19ETag: "21025-dc7-39462498"
20Accept-Ranges: bytes
21Content-Length: 6
22Connection: close
23Content-Type: text/html
24Funny-head: yesyes
25
26-foo-
27</data>
28</reply>
29
30#
31# Client-side
32<client>
33<features>
34headers-api
35</features>
36<server>
37http
38</server>
39<name>
40-w individual header output
41</name>
42<command option="no-output">
43http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w '%header{etag} %header{nope} %header{DATE}\n' -o %LOGDIR/%TESTNUMBER.out
44</command>
45</client>
46
47#
48# Verify data after the test has been "shot"
49<verify>
50<protocol>
51GET /%TESTNUMBER HTTP/1.1
52Host: %HOSTIP:%HTTPPORT
53User-Agent: curl/%VERSION
54Accept: */*
55
56</protocol>
57<stdout mode="text">
58"21025-dc7-39462498"  Tue, 09 Nov 2010 14:49:00 GMT
59</stdout>
60</verify>
61</testcase>
62