xref: /curl/tests/data/test429 (revision 2e160c9c)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP POST
6variables
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13<data crlf="yes">
14HTTP/1.1 200 OK
15Date: Tue, 09 Nov 2010 14:49:00 GMT
16Server: test-server/fake
17Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
18ETag: "21025-dc7-39462498"
19Accept-Ranges: bytes
20Content-Length: 6
21Connection: close
22Content-Type: text/html
23Funny-head: yesyes
24
25-foo-
26</data>
27</reply>
28
29#
30# Client-side
31<client>
32<server>
33http
34</server>
35<setenv>
36FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF=contents2023
37</setenv>
38<name>
39Expand environment variable in config file - too long name
40</name>
41<file name="%LOGDIR/cmd">
42--expand-data {{FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF}}
43</file>
44<command>
45http://%HOSTIP:%HTTPPORT/%TESTNUMBER -K %LOGDIR/cmd
46</command>
47</client>
48
49#
50# Verify data after the test has been "shot"
51<verify>
52<protocol crlf="yes" nonewline="yes">
53POST /%TESTNUMBER HTTP/1.1
54Host: %HOSTIP:%HTTPPORT
55User-Agent: curl/%VERSION
56Accept: */*
57Content-Length: 133
58Content-Type: application/x-www-form-urlencoded
59
60{{FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF}}
61</protocol>
62</verify>
63</testcase>
64