xref: /curl/tests/data/test10 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP PUT
6</keywords>
7</info>
8# Server-side
9<reply>
10<data>
11HTTP/1.0 200 OK swsclose
12Date: Tue, 09 Nov 2010 14:49:00 GMT
13Server: test-server/fake
14
15blablabla
16
17</data>
18</reply>
19
20# Client-side
21<client>
22<server>
23http
24</server>
25<name>
26simple HTTP PUT from file
27</name>
28<command>
29http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -T %LOGDIR/test%TESTNUMBER.txt
30</command>
31<file name="%LOGDIR/test%TESTNUMBER.txt">
32Weird
33     file
34         to
35   upload
36for
37   testing
38the
39   PUT
40      feature
41</file>
42</client>
43
44# Verify data after the test has been "shot"
45<verify>
46<protocol>
47PUT /we/want/%TESTNUMBER HTTP/1.1
48Host: %HOSTIP:%HTTPPORT
49User-Agent: curl/%VERSION
50Accept: */*
51Content-Length: 78
52
53Weird
54     file
55         to
56   upload
57for
58   testing
59the
60   PUT
61      feature
62</protocol>
63</verify>
64</testcase>
65