~ubuntu-branches/ubuntu/warty/curl/warty-security

« back to all changes in this revision

Viewing changes to tests/data/test156

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2004-06-04 19:09:25 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040604190925-wy048bp31320r2z6
Tags: 7.12.0.is.7.11.2-1
* Reverted to version 7.11.2 (closes: #252348).
* Disabled support for libidn (closes: #252367). This is to leave
  curl in unstable as much similar as possible to the one in testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Server-side
 
2
<reply>
 
3
<data>
 
4
HTTP/1.1 200 No Authorization Required swsclose swsbounce
 
5
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
 
6
Content-Type: text/html; charset=iso-8859-1
 
7
Connection: close
 
8
 
 
9
</data>
 
10
 
 
11
<data1>
 
12
HTTP/1.1 200 No Authorization Required swsclose
 
13
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
 
14
Content-Type: text/html; charset=iso-8859-1
 
15
Connection: close
 
16
 
 
17
PUT received fine. Thank you very much
 
18
</data1>
 
19
 
 
20
<datacheck>
 
21
HTTP/1.1 200 No Authorization Required swsclose swsbounce
 
22
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
 
23
Content-Type: text/html; charset=iso-8859-1
 
24
Connection: close
 
25
 
 
26
HTTP/1.1 200 No Authorization Required swsclose
 
27
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
 
28
Content-Type: text/html; charset=iso-8859-1
 
29
Connection: close
 
30
 
 
31
PUT received fine. Thank you very much
 
32
</datacheck>
 
33
 
 
34
</reply>
 
35
 
 
36
# Client-side
 
37
<client>
 
38
<server>
 
39
http
 
40
</server>
 
41
 <name>
 
42
HTTP PUT with --anyauth (when the server requires none)
 
43
 </name>
 
44
 <command>
 
45
http://%HOSTIP:%HOSTPORT/156 -T log/put156 -u testuser:testpass --anyauth
 
46
</command>
 
47
<file name="log/put156">
 
48
This is data we upload with PUT
 
49
a second line
 
50
line three
 
51
four is the number of lines
 
52
</file>
 
53
</client>
 
54
 
 
55
# Verify data after the test has been "shot"
 
56
<verify>
 
57
<strip>
 
58
^User-Agent:.*
 
59
</strip>
 
60
<protocol>
 
61
HEAD /156 HTTP/1.1
 
62
Host: 127.0.0.1:8999
 
63
Pragma: no-cache
 
64
Accept: */*
 
65
 
 
66
PUT /156 HTTP/1.1
 
67
User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3
 
68
Host: 127.0.0.1:8999
 
69
Pragma: no-cache
 
70
Accept: */*
 
71
Content-Length: 85
 
72
Expect: 100-continue
 
73
 
 
74
This is data we upload with PUT
 
75
a second line
 
76
line three
 
77
four is the number of lines
 
78
</protocol>
 
79
</verify>