Debian Codegraph @

curl/tests/data/test57

raw
1 <info>
2 <keywords>
3 HTTP
4 HTTP GET
5 --write-out
6 </keywords>
7 </info>
8 # Server-side
9 <reply>
10 <data>
11 HTTP/1.1 200 OK swsclose
12 Funny-head: yesyes
13 Content-Type: text/html; charset=ISO-8859-4
14
15 </data>
16 </reply>
17
18 # Client-side
19 <client>
20 <server>
21 http
22 </server>
23 <name>
24 HTTP content-type with spaces in
25 </name>
26 <command>
27 -w '%{content_type}\n' %HOSTIP:%HTTPPORT/57 -o log/out57
28 </command>
29 </test>
30
31 # Verify data after the test has been "shot"
32 <verify>
33 <file name="log/out57">
34 text/html; charset=ISO-8859-4
35 </file>
36 <strip>
37 ^User-Agent:.*
38 </strip>
39 <protocol>
40 GET /57 HTTP/1.1
41 Host: 127.0.0.1:%HTTPPORT
42 Accept: */*
43
44 </protocol>
45 </verify>