~ubuntu-branches/ubuntu/quantal/curl/quantal-updates

« back to all changes in this revision

Viewing changes to tests/data/test1068

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-04-02 23:35:45 UTC
  • mto: (1.2.1 upstream) (3.2.3 sid)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20090402233545-geixkwhe3izccjt7
Tags: upstream-7.19.4
ImportĀ upstreamĀ versionĀ 7.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<testcase>
 
2
# Similar to test 60
 
3
<info>
 
4
<keywords>
 
5
HTTP
 
6
HTTP PUT
 
7
</keywords>
 
8
</info>
 
9
 
 
10
# Server-side
 
11
<reply>
 
12
<data>
 
13
HTTP/1.0 200 OK swsclose
 
14
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
15
Server: test-server/fake
 
16
 
 
17
blablabla
 
18
 
 
19
</data>
 
20
</reply>
 
21
 
 
22
# Client-side
 
23
<client>
 
24
<server>
 
25
http
 
26
</server>
 
27
<name>
 
28
HTTP PUT from stdin
 
29
</name>
 
30
 <command>
 
31
http://%HOSTIP:%HTTPPORT/bzz/1068 -T -
 
32
</command>
 
33
<stdin>
 
34
more than one byte
 
35
</stdin>
 
36
</client>
 
37
 
 
38
# Verify data after the test has been "shot"
 
39
<verify>
 
40
<strip>
 
41
^User-Agent:.*
 
42
</strip>
 
43
<protocol>
 
44
PUT /bzz/1068 HTTP/1.1
 
45
Host: %HOSTIP:%HTTPPORT
 
46
Accept: */*
 
47
Transfer-Encoding: chunked
 
48
Expect: 100-continue
 
49
 
 
50
13
 
51
more than one byte
 
52
 
 
53
0
 
54
 
 
55
</protocol>
 
56
</verify>
 
57
</testcase>