test678 (872B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTPS 5 HTTP GET 6 PEM certificate 7 </keywords> 8 </info> 9 10 # 11 # Server-side 12 <reply> 13 <data> 14 HTTP/1.1 200 OK 15 Date: Tue, 09 Nov 2010 14:49:00 GMT 16 Server: test-server/fake 17 Content-Length: 7 18 19 MooMoo 20 </data> 21 </reply> 22 23 # 24 # Client-side 25 <client> 26 <features> 27 SSL 28 </features> 29 <server> 30 https test-localhost.pem 31 </server> 32 <name> 33 HTTPS GET using CURLOPT_CAINFO_BLOB 34 </name> 35 <tool> 36 lib%TESTNUMBER 37 </tool> 38 # provide URL and ca-cert 39 <command> 40 https://localhost:%HTTPSPORT/%TESTNUMBER %CERTDIR/certs/test-ca.crt 41 </command> 42 # Ensure that we're running on localhost because we're checking the host name 43 <precheck> 44 ./libtest/lib%TESTNUMBER check 45 </precheck> 46 </client> 47 48 # 49 # Verify data after the test has been "shot" 50 <verify> 51 <protocol> 52 GET /%TESTNUMBER HTTP/1.1 53 Host: localhost:%HTTPSPORT 54 User-Agent: CURLOPT_CAINFO_BLOB 55 Accept: */* 56 57 </protocol> 58 </verify> 59 </testcase>