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