xref: /curl/tests/data/test1411 (revision 22ba044f)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP PUT
6</keywords>
7</info>
8
9<reply>
10<data>
11HTTP/1.1 200 OK
12Date: Tue, 09 Nov 2010 14:49:00 GMT
13Server: test-server/fake
14Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
15ETag: "21025-dc7-39462498"
16Accept-Ranges: bytes
17Content-Length: 6
18Connection: close
19Content-Type: text/html
20Funny-head: yesyes
21
22-foo-
23</data>
24</reply>
25
26
27#
28# Client-side
29<client>
30<server>
31http
32</server>
33
34# make sure there's no Expect: 100-continue when there's no file to send!
35<name>
36HTTP with zero size file PUT
37</name>
38<command>
39http://%HOSTIP:%HTTPPORT/%TESTNUMBER -T %LOGDIR/empty%TESTNUMBER
40</command>
41# create an empty file
42<file name="%LOGDIR/empty%TESTNUMBER">
43</file>
44</client>
45
46#
47# Verify data after the test has been "shot"
48<verify>
49<protocol>
50PUT /%TESTNUMBER HTTP/1.1
51Host: %HOSTIP:%HTTPPORT
52User-Agent: curl/%VERSION
53Accept: */*
54Content-Length: 0
55
56</protocol>
57</verify>
58</testcase>
59