xref: /curl/tests/data/test281 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP PUT
6</keywords>
7</info>
8# Server-side
9<reply>
10<data>
11HTTP/1.1 100 Continue
12
13HTTP/1.1 401 Bad Auth swsclose
14Date: Tue, 09 Nov 2010 14:49:00 GMT
15WWW-Authenticate: Basic Realm=authenticate
16Server: test-server/fake
17
18</data>
19
20</reply>
21
22# Client-side
23<client>
24<server>
25http
26</server>
27<name>
28HTTP PUT from file with 100 + 401 responses and -f without auth given
29</name>
30<command>
31http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -f -T %LOGDIR/test%TESTNUMBER.txt
32</command>
33<file name="%LOGDIR/test%TESTNUMBER.txt">
34Weird
35     file
36         to
37   upload
38</file>
39</client>
40
41# Verify data after the test has been "shot"
42<verify>
43<errorcode>
4422
45</errorcode>
46<protocol>
47PUT /we/want/%TESTNUMBER HTTP/1.1
48Host: %HOSTIP:%HTTPPORT
49User-Agent: curl/%VERSION
50Accept: */*
51Content-Length: 38
52
53Weird
54     file
55         to
56   upload
57</protocol>
58</verify>
59</testcase>
60