xref: /curl/tests/data/test553 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP POST
6POST callback
7huge request header
8</keywords>
9</info>
10# Server-side
11<reply>
12
13<data>
14HTTP/1.1 200 Fine!
15Server: Apache/1.3.27 (Darwin) PHP/4.1.2
16Content-Length: 6
17
18hello
19</data>
20
21</reply>
22
23# Client-side
24<client>
25<server>
26http
27</server>
28# tool to use
29<tool>
30lib%TESTNUMBER
31</tool>
32<features>
33</features>
34<name>
35HTTP post with huge request headers and post data from callback
36</name>
37<command>
38http://%HOSTIP:%HTTPPORT/path/%TESTNUMBER
39</command>
40</client>
41
42# Verify data after the test has been "shot"
43<verify>
44<protocol nonewline="yes">
45POST /path/%TESTNUMBER HTTP/1.1
46Host: %HOSTIP:%HTTPPORT
47Accept: */*
48Header0: %repeat[5000 x A]%
49Header1: %repeat[5000 x A]%
50Header2: %repeat[5000 x A]%
51Header3: %repeat[5000 x A]%
52Header4: %repeat[5000 x A]%
53Header5: %repeat[5000 x A]%
54Header6: %repeat[5000 x A]%
55Header7: %repeat[5000 x A]%
56Content-Length: 40960
57Content-Type: application/x-www-form-urlencoded
58
59%repeat[40960 x A]%
60</protocol>
61</verify>
62</testcase>
63