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