Imported Upstream version 7.40.0
[platform/upstream/curl.git] / tests / data / test1334
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 # this relies on the debug feature to allow us to set directory to store the
27 # -O output in, using the CURL_TESTDIR variable
28 <features>
29 debug
30 </features>
31 <server>
32 http
33 </server>
34 <name>
35 HTTP GET with -O without Content-Disposition, -D file
36 </name>
37 <setenv>
38 CURL_TESTDIR=%PWD/log
39 </setenv>
40 <command option="no-output,no-include">
41 http://%HOSTIP:%HTTPPORT/1334 -O -D log/heads1334
42 </command>
43 </client>
44
45 #
46 # Verify data after the test has been "shot"
47 <verify>
48 <strip>
49 ^User-Agent:.*
50 </strip>
51 <protocol>
52 GET /1334 HTTP/1.1\r
53 Host: %HOSTIP:%HTTPPORT\r
54 Accept: */*\r
55 \r
56 </protocol>
57
58 <file1 name="log/1334">
59 12345
60 </file1>
61
62 <file2 name="log/heads1334">
63 HTTP/1.1 200 OK\r
64 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
65 Server: test-server/fake\r
66 Content-Length: 6\r
67 Connection: close\r
68 Content-Type: text/html\r
69 \r
70 </file2>
71
72 <file3 name="log/stdout1334">
73 </file3>
74
75 </verify>
76 </testcase>