xref: /curl/tests/data/test1680 (revision e7a021e1)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6--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 with explicit 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 --clobber
37</command>
38<file name="%LOGDIR/exist%TESTNUMBER">
39to be overwritten
40</file>
41</client>
42
43#
44# Verify data after the test has been "shot"
45<verify>
46<file name="%LOGDIR/exist%TESTNUMBER">
47HTTP/1.0 200 OK
48Connection: close
49Content-Type: text/plain
50Content-Length: 4
51
52foo
53</file>
54</verify>
55</testcase>
56