~ubuntu-branches/ubuntu/saucy/curl/saucy-201307251546

« back to all changes in this revision

Viewing changes to tests/data/test1116

  • Committer: Bazaar Package Importer
  • Author(s): Ramakrishnan Muthukrishnan
  • Date: 2010-10-18 11:13:17 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20101018111317-9rkas34ecwtq0upn
Tags: upstream-7.21.2
ImportĀ upstreamĀ versionĀ 7.21.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<testcase>
 
2
<info>
 
3
<keywords>
 
4
HTTP
 
5
HTTP GET
 
6
chunked Transfer-Encoding
 
7
</keywords>
 
8
</info>
 
9
#
 
10
# Server-side
 
11
<reply>
 
12
<data>
 
13
HTTP/1.1 200 funky chunky!
 
14
Server: fakeit/0.9 fakeitbad/1.0
 
15
Transfer-Encoding: chunked
 
16
Connection: mooo
 
17
 
 
18
40
 
19
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
20
30
 
21
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
 
22
21;heresatest=moooo
 
23
cccccccccccccccccccccccccccccccc
 
24
 
 
25
0
 
26
chunky-trailer: header data
 
27
another-header: yes
 
28
 
 
29
</data>
 
30
<datacheck>
 
31
HTTP/1.1 200 funky chunky!
 
32
Server: fakeit/0.9 fakeitbad/1.0
 
33
Transfer-Encoding: chunked
 
34
Connection: mooo
 
35
 
 
36
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccc
 
37
</datacheck>
 
38
</reply>
 
39
 
 
40
#
 
41
# Client-side
 
42
<client>
 
43
<server>
 
44
http
 
45
</server>
 
46
 <name>
 
47
HTTP GET with chunked trailer without Trailer:
 
48
 </name>
 
49
 <command>
 
50
http://%HOSTIP:%HTTPPORT/1116 -D log/heads1116
 
51
</command>
 
52
</client>
 
53
 
 
54
#
 
55
# Verify data after the test has been "shot"
 
56
<verify>
 
57
<strip>
 
58
^User-Agent:.*
 
59
</strip>
 
60
<protocol>
 
61
GET /1116 HTTP/1.1
 
62
Host: %HOSTIP:%HTTPPORT
 
63
Accept: */*
 
64
 
 
65
</protocol>
 
66
<file name="log/heads1116">
 
67
HTTP/1.1 200 funky chunky!
 
68
Server: fakeit/0.9 fakeitbad/1.0
 
69
Transfer-Encoding: chunked
 
70
Connection: mooo
 
71
 
 
72
chunky-trailer: header data
 
73
another-header: yes
 
74
</file>
 
75
</verify>
 
76
 
 
77
</testcase>