Debian Codegraph @

curl/tests/data/test522

raw
1 <info>
2 <keywords>
3 HTTP
4 HTTP GET
5 CURLOPT_PORT
6 </keywords>
7 </info>
8
9 #
10 # Server-side
11 <reply>
12 <data nocheck=1>
13 HTTP/1.1 200 OK
14 Date: Thu, 09 Nov 2010 14:49:00 GMT
15 Server: test-server/fake
16 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
17 ETag: "21025-dc7-39462498"
18 Accept-Ranges: bytes
19 Content-Length: 6
20
21 hello
22 </data>
23 </reply>
24
25 #
26 # Client-side
27 <client>
28 <server>
29 http
30 </server>
31 <tool>
32 lib521
33 </tool>
34 <name>
35 HTTP GET with CURLOPT_PORT
36 </name>
37 <command>
38 http://%HOSTIP/522 %HTTPPORT
39 </command>
40 </client>
41
42 #
43 # Verify data after the test has been "shot"
44 <verify>
45 <strip>
46 ^User-Agent:.*
47 </strip>
48 <protocol>
49 GET /522 HTTP/1.1
50 Authorization: Basic eHh4Onl5eQ==
51 Host: 127.0.0.1:%HTTPPORT
52 Accept: */*
53
54 </protocol>
55 <stdout>
56 hello
57 </stdout>
58 </verify>