Imported Upstream version 7.40.0
[platform/upstream/curl.git] / tests / data / test1364
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 </keywords>
7 </info>
8
9 #
10 <reply>
11 <data nocheck="yes">
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 Content-Length: 6\r
16 Connection: close\r
17 Content-Type: text/html\r
18 \r
19 12345
20 </data>
21 </reply>
22
23 #
24 # Client-side
25 <client>
26 <server>
27 http
28 </server>
29 <name>
30 HTTP GET -o fname without Content-Disposition, -D file
31 </name>
32 <command option="no-output,no-include">
33 http://%HOSTIP:%HTTPPORT/1364 -o log/outfile1364 -D log/heads1364
34 </command>
35 <postcheck>
36 perl %SRCDIR/libtest/notexists.pl log/1364
37 </postcheck>
38 </client>
39
40 #
41 # Verify data after the test has been "shot"
42 <verify>
43 <strip>
44 ^User-Agent:.*
45 </strip>
46 <protocol>
47 GET /1364 HTTP/1.1\r
48 Host: %HOSTIP:%HTTPPORT\r
49 Accept: */*\r
50 \r
51 </protocol>
52
53 <file1 name="log/outfile1364">
54 12345
55 </file1>
56
57 <file2 name="log/heads1364">
58 HTTP/1.1 200 OK\r
59 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
60 Server: test-server/fake\r
61 Content-Length: 6\r
62 Connection: close\r
63 Content-Type: text/html\r
64 \r
65 </file2>
66
67 <file3 name="log/stdout1364">
68 </file3>
69
70 </verify>
71 </testcase>