xref: /curl/tests/data/test1681 (revision e7a021e1)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6--no-clobber
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13<data nocheck="yes">
14HTTP/1.0 200 OK
15Connection: close
16Content-Type: text/plain
17Content-Length: 4
18
19foo
20</data>
21</reply>
22
23#
24# Client-side
25<client>
26<name>
27HTTP GET without clobber
28</name>
29<server>
30http
31</server>
32<features>
33http
34</features>
35<command option="no-output">
36http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o %LOGDIR/exist%TESTNUMBER --no-clobber -w '%{filename_effective}\n'
37</command>
38<file name="%LOGDIR/exist%TESTNUMBER">
39to stay the same
40</file>
41</client>
42
43#
44# Verify data after the test has been "shot"
45<verify>
46<file name="%LOGDIR/exist%TESTNUMBER">
47to stay the same
48</file>
49<file1 name="%LOGDIR/exist%TESTNUMBER.1">
50HTTP/1.0 200 OK
51Connection: close
52Content-Type: text/plain
53Content-Length: 4
54
55foo
56</file1>
57<stdout mode="text">
58%LOGDIR/exist%TESTNUMBER.1
59</stdout>
60</verify>
61</testcase>
62