226190d056c4ca3bc02007c2cfb57f6ccd8efc4a
[platform/upstream/curl.git] / tests / data / test1535
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 </keywords>
7 </info>
8
9 #
10 # Server-side
11 <reply>
12 <data nocheck="yes">
13 HTTP/1.0 200 OK swsclose
14 Last-Modified: Thu, 01 Jan 1970 00:00:30 GMT
15 Content-Length: 0
16
17 </data>
18 </reply>
19
20 # Client-side
21 <client>
22 <server>
23 http
24 </server>
25 # tool is what to use instead of 'curl'
26 <tool>
27 lib1535
28 </tool>
29 <name>
30 Test CURLINFO_RESPONSE_CODE CURLINFO_PROTOCOL
31 </name>
32 <command>
33 http://%HOSTIP:%HTTPPORT/1535
34 </command>
35 </client>
36
37 #
38 # Verify data after the test has been "shot"
39 <verify>
40 <protocol>
41 GET /1535 HTTP/1.1\r
42 Host: %HOSTIP:%HTTPPORT\r
43 Accept: */*\r
44 \r
45 </protocol>
46 <errorcode>
47 0
48 </errorcode>
49 </verify>
50 </testcase>