tizen 2.3.1 release
[external/curl.git] / tests / data / test1338
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 -J
7 </keywords>
8 </info>
9
10 #
11 <reply>
12 <data nocheck="yes">
13 HTTP/1.1 200 OK\r
14 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
15 Server: test-server/fake\r
16 Content-Length: 6\r
17 Connection: close\r
18 Content-Type: text/html\r
19 \r
20 12345
21 </data>
22 </reply>
23
24 #
25 # Client-side
26 <client>
27 # this relies on the debug feature to allow us to set directory to store the
28 # -O and -J output in, using the CURL_TESTDIR variable
29 <features>
30 debug
31 </features>
32 <server>
33 http
34 </server>
35 <name>
36 HTTP GET with -O -J without Content-Disposition, -D file
37 </name>
38 <setenv>
39 CURL_TESTDIR=%PWD/log
40 </setenv>
41 <command option="no-output,no-include">
42 http://%HOSTIP:%HTTPPORT/1338 -J -O -D log/heads1338
43 </command>
44 </client>
45
46 #
47 # Verify data after the test has been "shot"
48 <verify>
49 <strip>
50 ^User-Agent:.*
51 </strip>
52 <protocol>
53 GET /1338 HTTP/1.1\r
54 Host: %HOSTIP:%HTTPPORT\r
55 Accept: */*\r
56 \r
57 </protocol>
58
59 <file1 name="log/1338">
60 12345
61 </file1>
62
63 <file2 name="log/heads1338">
64 HTTP/1.1 200 OK\r
65 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
66 Server: test-server/fake\r
67 Content-Length: 6\r
68 Connection: close\r
69 Content-Type: text/html\r
70 \r
71 </file2>
72
73 <file3 name="log/stdout1338">
74 </file3>
75
76 </verify>
77 </testcase>