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

« back to all changes in this revision

Viewing changes to tests/data/test1090

  • 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 GET
 
6
followlocation
 
7
chunked Transfer-Encoding
 
8
--write-out
 
9
</keywords>
 
10
</info>
 
11
 
 
12
#
 
13
# Server-side
 
14
<reply>
 
15
<data nocheck="yes">
 
16
HTTP/1.1 302 OK swsbounce swsclose
 
17
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
18
Content-Length: 8
 
19
Connection: close
 
20
Content-Type: text/plain
 
21
Location: ./10900001
 
22
 
 
23
monster
 
24
</data>
 
25
<data1 nocheck="yes">
 
26
HTTP/1.1 200 OK
 
27
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
28
Transfer-Encoding: chunked
 
29
Connection: close
 
30
Content-Type: text/plain; charset=us-ascii
 
31
 
 
32
0007
 
33
bigger 
 
34
0008
 
35
monster
 
36
 
 
37
0
 
38
 
 
39
</data1>
 
40
 
 
41
</reply>
 
42
 
 
43
#
 
44
# Client-side
 
45
<client>
 
46
<server>
 
47
http
 
48
</server>
 
49
 <name>
 
50
HTTP GET --write-out with redirected fetch and chunked reply
 
51
 </name>
 
52
 <command>
 
53
http://%HOSTIP:%HTTPPORT/1090 -w "%{num_connects}\n%{num_redirects}\n%{size_download}\n%{url_effective}\n%{content_type}\n%{response_code}\n" -L
 
54
</command>
 
55
</client>
 
56
 
 
57
#
 
58
# Verify data after the test has been "shot"
 
59
<verify>
 
60
<strip>
 
61
^User-Agent:.*
 
62
</strip>
 
63
<protocol>
 
64
GET /1090 HTTP/1.1
 
65
Host: %HOSTIP:%HTTPPORT
 
66
Accept: */*
 
67
 
 
68
GET /10900001 HTTP/1.1
 
69
Host: %HOSTIP:%HTTPPORT
 
70
Accept: */*
 
71
 
 
72
</protocol>
 
73
 
 
74
<stdout>
 
75
HTTP/1.1 302 OK swsbounce swsclose
 
76
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
77
Content-Length: 8
 
78
Connection: close
 
79
Content-Type: text/plain
 
80
Location: ./10900001
 
81
 
 
82
HTTP/1.1 200 OK
 
83
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
84
Transfer-Encoding: chunked
 
85
Connection: close
 
86
Content-Type: text/plain; charset=us-ascii
 
87
 
 
88
bigger monster
 
89
2
 
90
1
 
91
15
 
92
http://%HOSTIP:%HTTPPORT/10900001
 
93
text/plain; charset=us-ascii
 
94
200
 
95
</stdout>
 
96
 
 
97
</verify>
 
98
</testcase>