• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 log/test%TESTNUMBER.txt
32</command>
33<file name="log/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
52Expect: 100-continue
53
54Weird
55     file
56         to
57   upload
58</protocol>
59</verify>
60</testcase>
61