Debian Codegraph @

curl/tests/data/test97

raw
1 <info>
2 <keywords>
3 HTTP
4 HTTP POST
5 HTTP replaced headers
6 </keywords>
7 </info>
8 #
9 # Server-side
10 <reply>
11 <data>
12 HTTP/1.0 200 OK
13 Server: test-server/fake
14 Content-Type: text/html
15 Content-Length: 6
16
17 blaha
18 </data>
19 </reply>
20
21 #
22 # Client-side
23 <client>
24 <server>
25 http
26 </server>
27 <name>
28 HTTP POST with custom content-type
29 </name>
30 <command>
31 -d "hejsanallabarn" -H "Content-Type: silly/type" http://%HOSTIP:%HTTPPORT/97
32 </command>
33 </client>
34
35 #
36 # Verify data after the test has been "shot"
37 <verify>
38 <strip>
39 ^User-Agent:.*
40 </strip>
41 <protocol nonewline=yes>
42 POST /97 HTTP/1.1
43 Host: 127.0.0.1:%HTTPPORT
44 Accept: */*
45 Content-Type: silly/type
46 Content-Length: 14
47
48 hejsanallabarn
49 </protocol>
50 </verify>