Home | History | Annotate | Download | only in data
      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: Thu, 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 Server-localhost-sv.pem
     31 </server>
     32  <name>
     33 simple HTTPS GET
     34  </name>
     35  <command>
     36 --cacert %SRCDIR/certs/EdelCurlRoot-ca.crt https://localhost:%HTTPSPORT/310
     37 </command>
     38 # Ensure that we're running on localhost because we're checking the host name
     39 <precheck>
     40 perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );"
     41 </precheck>
     42 </client>
     43 
     44 #
     45 # Verify data after the test has been "shot"
     46 <verify>
     47 <strip>
     48 ^User-Agent:.*
     49 </strip>
     50 <protocol>
     51 GET /310 HTTP/1.1
     52 Host: localhost:%HTTPSPORT
     53 Accept: */*
     54 
     55 </protocol>
     56 </verify>
     57 </testcase>
     58