1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6-J
7</keywords>
8</info>
9
10#
11<reply>
12<data nocheck="yes">
13HTTP/1.1 200 OK
14Date: Thu, 09 Nov 2010 14:49:00 GMT
15Server: test-server/fake
16Content-Length: 6
17Connection: close
18Content-Type: text/html
19Content-Disposition: filename=name1370; charset=funny; option=strange
20
2112345
22</data>
23</reply>
24
25#
26# Client-side
27<client>
28<server>
29http
30</server>
31<name>
32HTTP GET -o fname -J and Content-Disposition, -D file
33</name>
34<command option="no-output,no-include">
35http://%HOSTIP:%HTTPPORT/1370 -J -o log/outfile1370 -D log/heads1370
36</command>
37<postcheck>
38perl %SRCDIR/libtest/notexists.pl log/1370 log/name1370
39</postcheck>
40</client>
41
42#
43# Verify data after the test has been "shot"
44<verify>
45<strip>
46^User-Agent:.*
47</strip>
48<protocol>
49GET /1370 HTTP/1.1
50Host: %HOSTIP:%HTTPPORT
51Accept: */*
52
53</protocol>
54
55<file1 name="log/outfile1370">
5612345
57</file1>
58
59<file2 name="log/heads1370">
60HTTP/1.1 200 OK
61Date: Thu, 09 Nov 2010 14:49:00 GMT
62Server: test-server/fake
63Content-Length: 6
64Connection: close
65Content-Type: text/html
66Content-Disposition: filename=name1370; charset=funny; option=strange
67
68</file2>
69
70<file3 name="log/stdout1370">
71</file3>
72
73</verify>
74</testcase>
75