aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test56
blob: 394ac357477bb15d9c0fdba7571848fb63663afe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<testcase>
<info>
<keywords>
HTTP
HTTP POST
chunked Transfer-Encoding
config file
-A
</keywords>
</info>
# Server-side
<reply>
<data>
HTTP/1.0 200 OK swsclose
Funny-head: yesyes

This is the proof it works
</data>
</reply>

# Client-side
<client>
<server>
http
</server>
 <name>
HTTP POST with *HUGE* request and chunked transfer-encoding
 </name>
 <stdin>
#
data "we post this"
#
# enforce chunky post!
header "Transfer-Encoding: chunked"
#
# Set the user-agent using a short-option:
-A "%repeat[99999 x a]%"
#
 </stdin>
 <command>
-K - %HOSTIP:%HTTPPORT/that.site.com/56
</command>
</client>

# Verify data after the test has been "shot"
<verify>
<protocol>
POST /that.site.com/56 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: %repeat[99999 x a]%
Accept: */*
Transfer-Encoding: chunked
Content-Type: application/x-www-form-urlencoded

c
we post this
0

</protocol>
</verify>
</testcase>