xref: /curl/tests/data/test566 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6</keywords>
7</info>
8#
9# Server-side
10<reply>
11<data>
12HTTP/1.1 200 OK
13Date: Tue, 09 Nov 2010 14:49:00 GMT
14Server: test-server/fake
15Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
16ETag: "21025-dc7-39462498"
17Accept-Ranges: bytes
18Content-Length: 0
19Connection: close
20Content-Type: text/html
21Funny-head: yesyes
22
23</data>
24</reply>
25
26# Client-side
27<client>
28<server>
29http
30</server>
31# tool is what to use instead of 'curl'
32<tool>
33lib%TESTNUMBER
34</tool>
35
36<name>
37HTTP GET with CURLINFO_CONTENT_LENGTH_DOWNLOAD and 0 bytes transfer
38</name>
39<command>
40http://%HOSTIP:%HTTPPORT/%TESTNUMBER %LOGDIR/ip%TESTNUMBER
41</command>
42</client>
43
44#
45# Verify data after the test has been "shot"
46<verify>
47<file name="%LOGDIR/ip%TESTNUMBER">
48CL 0
49</file>
50<protocol>
51GET /%TESTNUMBER HTTP/1.1
52Host: %HOSTIP:%HTTPPORT
53Accept: */*
54
55</protocol>
56</verify>
57</testcase>
58