~ubuntu-branches/ubuntu/lucid/curl/lucid-201101212007

« back to all changes in this revision

Viewing changes to tests/data/test281

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-05-16 15:16:54 UTC
  • mto: (3.1.1 lenny) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20070516151654-x9nkigtr2j0i8d0v
Tags: upstream-7.16.2
ImportĀ upstreamĀ versionĀ 7.16.2

Show diffs side-by-side

added added

removed removed

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