xref: /curl/tests/data/test379 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6</keywords>
7</info>
8
9#
10# Crafted to cause error
11<reply>
12<data nocheck="yes">
13HTTP/1.1 200 OK swsclose
14Date: Tue, 09 Nov 2010 14:49:00 GMT
15Server: test-server/fake
16Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
17ETag: "21025-dc7-39462498"
18Accept-Ranges: bytes
19Content-Length: 75
20Connection: close
21Content-Type: text/html
22Funny-head: yesyes
23
24-foo-
25</data>
26</reply>
27
28#
29# Client-side
30<client>
31<file name="%LOGDIR/save">
32exists before command runs
33</file>
34<server>
35http
36</server>
37<name>
38--remove-on-error with --no-clobber and an added number
39</name>
40 <command option="no-output">
41http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o %LOGDIR/save --remove-on-error --no-clobber
42</command>
43</client>
44
45#
46# Verify data after the test has been "shot". hyper doesn't do error 18
47<verify>
48<errorcode>
49%if hyper
5056
51%else
5218
53%endif
54</errorcode>
55<protocol>
56GET /%TESTNUMBER HTTP/1.1
57Host: %HOSTIP:%HTTPPORT
58User-Agent: curl/%VERSION
59Accept: */*
60
61</protocol>
62
63# this file should be untouched
64<file name="%LOGDIR/save">
65exists before command runs
66</file>
67# the file should be empty now
68<file2 name="%LOGDIR/save.1">
69</file2>
70</verify>
71</testcase>
72