• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6chunked Transfer-Encoding
7</keywords>
8</info>
9#
10# Server-side
11<reply>
12<data>
13HTTP/1.1 200 funky chunky!
14Server: fakeit/0.9 fakeitbad/1.0
15Transfer-Encoding: chunked
16Connection: mooo
17
1840
19aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
2030
21bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
2221;heresatest=moooo
23cccccccccccccccccccccccccccccccc
24
250
26%if !hyper
27chunky-trailer: header data
28another-header: yes
29%endif
30
31</data>
32<datacheck>
33HTTP/1.1 200 funky chunky!
34Server: fakeit/0.9 fakeitbad/1.0
35Transfer-Encoding: chunked
36Connection: mooo
37
38aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccc
39%if !hyper
40chunky-trailer: header data
41another-header: yes
42%endif
43</datacheck>
44</reply>
45
46#
47# Client-side
48<client>
49<server>
50http
51</server>
52 <name>
53HTTP GET with chunked trailer without Trailer:
54 </name>
55 <command>
56http://%HOSTIP:%HTTPPORT/%TESTNUMBER -D log/heads%TESTNUMBER
57</command>
58</client>
59
60#
61# Verify data after the test has been "shot"
62<verify>
63<protocol>
64GET /%TESTNUMBER HTTP/1.1
65Host: %HOSTIP:%HTTPPORT
66User-Agent: curl/%VERSION
67Accept: */*
68
69</protocol>
70<file name="log/heads%TESTNUMBER">
71HTTP/1.1 200 funky chunky!
72Server: fakeit/0.9 fakeitbad/1.0
73Transfer-Encoding: chunked
74Connection: mooo
75
76%if !hyper
77chunky-trailer: header data
78another-header: yes
79%endif
80</file>
81</verify>
82
83</testcase>
84