xref: /aosp_15_r20/external/curl/tests/data/test463 (revision 6236dae45794135f37c4eb022389c904c8b0090d)
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
32two
33three
34four�five
35</file>
36<command>
37-d @%LOGDIR/input463 http://%HOSTIP:%HTTPPORT/%TESTNUMBER
38</command>
39</client>
40
41#
42# Verify data after the test has been "shot"
43<verify>
44<protocol crlf="yes" nonewline="yes">
45POST /%TESTNUMBER HTTP/1.1
46Host: %HOSTIP:%HTTPPORT
47User-Agent: curl/%VERSION
48Accept: */*
49Content-Length: 19
50Content-Type: application/x-www-form-urlencoded
51
52onetwothreefourfive
53</protocol>
54</verify>
55</testcase>
56