• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 swsclose
14  12345
15fooo
1654 3 2 1
17Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
18
19</data>
20</reply>
21
22#
23# Client-side
24<client>
25# this relies on the debug feature to allow us to set directory to store the
26# -J output in
27<features>
28debug
29</features>
30<server>
31http
32</server>
33<name>
34HTTP GET with -Ji and Content-Disposition with existing file
35</name>
36<setenv>
37CURL_TESTDIR=%PWD/log
38</setenv>
39<command option="no-output,no-include">
40http://%HOSTIP:%HTTPPORT/%TESTNUMBER -Ji -O
41</command>
42<file name="log/name%TESTNUMBER">
43initial content
44</file>
45</client>
46
47#
48# Verify data after the test has been "shot"
49<verify>
50# Warning: --include and --remote-header-name cannot be combined.
51<errorcode>
522
53</errorcode>
54<file name="log/name%TESTNUMBER">
55initial content
56</file>
57
58</verify>
59</testcase>
60