xref: /curl/tests/data/test1460 (revision b0c82239)
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
14Date: Tue, 09 Nov 2010 14:49:00 GMT
15Server: test-server/fake
16Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
17Content-Length: 4
18
19hej
20</data>
21</reply>
22
23#
24# Client-side
25<client>
26<server>
27http
28</server>
29<name>
30HTTP GET with -Ji and Content-Disposition with existing file
31</name>
32<command option="no-output,no-include">
33http://%HOSTIP:%HTTPPORT/%TESTNUMBER -Ji -O --output-dir %LOGDIR
34</command>
35<file name="%LOGDIR/name%TESTNUMBER">
36initial content
37</file>
38</client>
39
40#
41# Verify data after the test has been "shot"
42<verify>
43# Warning: Failed to open the file log/name1460: File exists
44<errorcode>
4523
46</errorcode>
47<file name="%LOGDIR/name%TESTNUMBER">
48initial content
49</file>
50
51</verify>
52</testcase>
53