xref: /curl/tests/data/test463 (revision 6a13d4d7)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP POST
6-d
7</keywords>
8</info>
9#
10# Server-side
11<reply>
12<data>
13HTTP/1.1 200 OK
14Date: Tue, 09 Nov 2010 14:49:00 GMT
15Content-Length: 4
16
17ok!
18</data>
19</reply>
20
21#
22# Client-side
23<client>
24<server>
25http
26</server>
27<name>
28HTTP with -d @file with file containing CR, LF and null byte
29</name>
30<file name="%LOGDIR/input463">
31one
31two
31three
32four�five
33</file>
34<command>
35-d @%LOGDIR/input463 http://%HOSTIP:%HTTPPORT/%TESTNUMBER
36</command>
37</client>
38
39#
40# Verify data after the test has been "shot"
41<verify>
42<protocol crlf="yes" nonewline="yes">
43POST /%TESTNUMBER HTTP/1.1
44Host: %HOSTIP:%HTTPPORT
45User-Agent: curl/%VERSION
46Accept: */*
47Content-Length: 19
48Content-Type: application/x-www-form-urlencoded
49
50onetwothreefourfive
51</protocol>
52</verify>
53</testcase>
54