~ubuntu-branches/ubuntu/lucid/curl/lucid-security

« back to all changes in this revision

Viewing changes to tests/data/test1065

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2009-04-29 11:10:29 UTC
  • mfrom: (3.2.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090429111029-2j5eiyokfw2bw049
Tags: 7.19.4-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop build dependencies: stunnel, libdb4.6-dev, libssh2-1-dev
  - Add build-dependency on openssh-server
  - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.
  - Call automake-1.9 with --add-missing --copy --force
* drop debian/patches/security_CVE-2009-0037.patch 
  - this patch is part of 7.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<testcase>
 
2
<info>
 
3
<keywords>
 
4
HTTP
 
5
HTTP PUT
 
6
HTTP GET
 
7
</keywords>
 
8
</info>
 
9
 
 
10
<reply>
 
11
<data nocheck="yes">
 
12
HTTP/1.1 200 A OK
 
13
Server: curl test
 
14
Content-Type: text/html; charset=iso-8859-1
 
15
Content-Length: 3
 
16
 
 
17
ok
 
18
</data>
 
19
<data2 nocheck="yes">
 
20
HTTP/1.1 200 A OK
 
21
Server: curl test
 
22
Content-Type: text/html; charset=iso-8859-1
 
23
Content-Length: 9
 
24
 
 
25
still ok
 
26
</data2>
 
27
</reply>
 
28
 
 
29
# Client-side
 
30
<client>
 
31
 
32
<server>
 
33
http
 
34
</server>
 
35
 <name>
 
36
HTTP PUT with one file but two URLs
 
37
 </name>
 
38
 <command>
 
39
-H "Expect:" -T log/1065 http://%HOSTIP:%HTTPPORT/1065.upload1 http://%HOSTIP:%HTTPPORT/10650002.url2
 
40
</command>
 
41
<file name="log/1065">
 
42
test
 
43
</file>
 
44
</client>
 
45
 
 
46
# Verify data after the test has been "shot"
 
47
<verify>
 
48
<strip>
 
49
^User-Agent:.*
 
50
</strip>
 
51
<protocol>
 
52
PUT /1065.upload1 HTTP/1.1
 
53
Host: %HOSTIP:%HTTPPORT
 
54
Accept: */*
 
55
Content-Length: 5
 
56
 
 
57
test
 
58
GET /10650002.url2 HTTP/1.1
 
59
Host: %HOSTIP:%HTTPPORT
 
60
Accept: */*
 
61
 
 
62
</protocol>
 
63
<stdout>
 
64
HTTP/1.1 200 A OK
 
65
Server: curl test
 
66
Content-Type: text/html; charset=iso-8859-1
 
67
Content-Length: 3
 
68
 
 
69
ok
 
70
HTTP/1.1 200 A OK
 
71
Server: curl test
 
72
Content-Type: text/html; charset=iso-8859-1
 
73
Content-Length: 9
 
74
 
 
75
still ok
 
76
</stdout>
 
77
</verify>
 
78
</testcase>