Debian Codegraph @

curl/tests/data/test17

raw
1 <info>
2 <keywords>
3 HTTP
4 HTTP custom request
5 config file
6 </keywords>
7 </info>
8 # Server-side
9 <reply>
10 <data>
11 HTTP/1.1 200 OK
12 Funny-head: yesyes
13 Content-Length: 27
14
15 This is the proof it works
16 </data>
17 </reply>
18
19 # Client-side
20 <client>
21 <server>
22 http
23 </server>
24 <name>
25 HTTP with config file on stdin
26 </name>
27 <stdin>
28 #
29 # Use a silly request without '--':
30 request MOOO
31 #
32 # Set the user-agent using a short-option:
33 -A "agent007 license to drill\t"
34 #
35 # long option *with* '--':
36 --max-time 180
37 </stdin>
38 <command>
39 -K - %HOSTIP:%HTTPPORT/that.site.com/17
40 </command>
41 </client>
42
43 # Verify data after the test has been "shot"
44 <verify>
45 <protocol>
46 MOOO /that.site.com/17 HTTP/1.1
47 User-Agent: agent007 license to drill
48 Host: 127.0.0.1:%HTTPPORT
49 Accept: */*
50
51 </protocol>
52 </verify>