Debian Codegraph @

curl/tests/data/test2

raw
1 <info>
2 <keywords>
3 HTTP
4 HTTP GET
5 HTTP Basic auth
6 </keywords>
7 </info>
8 #
9 # Server-side
10 <reply>
11 <data>
12 HTTP/1.1 200 OK
13 Date: Thu, 09 Nov 2010 14:49:00 GMT
14 Server: test-server/fake swsclose
15 Content-Type: text/html
16 Funny-head: yesyes
17
18 </data>
19 </reply>
20
21 #
22 # Client-side
23 <client>
24 <server>
25 http
26 </server>
27 <name>
28 HTTP GET with user and password
29 </name>
30 <command>
31 -u fake:user http://%HOSTIP:%HTTPPORT/2
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>
42 GET /2 HTTP/1.1
43 Authorization: Basic ZmFrZTp1c2Vy
44 Host: 127.0.0.1:%HTTPPORT
45 Accept: */*
46
47 </protocol>
48 <data>
49 [insert full protocol verifiction dump here]
50 </data>
51 </verify>