test301 (778B)
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: Tue, 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 --insecure -u fake:user https://%HOSTIP:%HTTPSPORT/%TESTNUMBER 37 </command> 38 </client> 39 40 # 41 # Verify data after the test has been "shot" 42 <verify> 43 <protocol> 44 GET /%TESTNUMBER HTTP/1.1 45 Host: %HOSTIP:%HTTPSPORT 46 Authorization: Basic %b64[fake:user]b64% 47 User-Agent: curl/%VERSION 48 Accept: */* 49 50 </protocol> 51 <data> 52 [insert full protocol verifiction dump here] 53 </data> 54 </verify> 55 </testcase>