Debian Codegraph @

curl/tests/data/test15

raw
1 <info>
2 <keywords>
3 HTTP
4 HTTP GET
5 --write-out
6 </keywords>
7 </info>
8 # Server-side
9 <reply>
10 <data nocheck=true>
11 HTTP/1.4 200 OK
12 Fake: yes
13 Fake: yes
14 Fake: yes
15 Content-Length: 26
16
17 Repeated nonsense-headers
18 </data>
19 </reply>
20
21 # Client-side
22 <client>
23 <server>
24 http
25 </server>
26 <name>
27 --write-out test
28 </name>
29 <command>
30 http://%HOSTIP:%HTTPPORT/want/15 --write-out '%{url_effective} %{http_code} %{size_download}\n'
31 </command>
32 </client>
33
34 # Verify data after the test has been "shot"
35 <verify>
36 <stdout>
37 HTTP/1.4 200 OK
38 Fake: yes
39 Fake: yes
40 Fake: yes
41 Content-Length: 26
42
43 Repeated nonsense-headers
44 http://127.0.0.1:%HTTPPORT/want/15 200 26
45 </stdout>
46 <strip>
47 ^User-Agent:.*
48 </strip>
49 <protocol>
50 GET /want/15 HTTP/1.1
51 Host: 127.0.0.1:%HTTPPORT
52 Accept: */*
53
54 </protocol>
55 </verify>