Debian Codegraph @

curl/tests/data/test301

raw
1 #
2 # Server-side
3 <reply>
4 <data>
5 HTTP/1.1 200 OK swsclose
6 Date: Thu, 09 Nov 2010 14:49:00 GMT
7 Server: test-server/fake
8 Content-Type: text/html
9 Funny-head: yesyes
10
11 </data>
12 </reply>
13
14 #
15 # Client-side
16 <client>
17 <features>
18 SSL
19 </features>
20 <server>
21 https
22 </server>
23 <name>
24 HTTPS GET with user and password
25 </name>
26 <command>
27 -k -u fake:user https://%HOSTIP:%HTTPSPORT/301
28 </command>
29 </client>
30
31 #
32 # Verify data after the test has been "shot"
33 <verify>
34 <strip>
35 ^User-Agent:.*
36 </strip>
37 <protocol>
38 GET /301 HTTP/1.1
39 Authorization: Basic ZmFrZTp1c2Vy
40 Host: 127.0.0.1:%HTTPSPORT
41 Accept: */*
42
43 </protocol>
44 <data>
45 [insert full protocol verifiction dump here]
46 </data>
47 </verify>