2009-08-12 05:48:58 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTPS
|
|
|
|
HTTP GET
|
2010-01-19 04:20:07 +08:00
|
|
|
PEM certificate
|
2009-08-12 05:48:58 +08:00
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2009-08-12 05:48:58 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Content-Length: 7
|
|
|
|
|
|
|
|
MooMoo
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<features>
|
|
|
|
SSL
|
2021-11-06 23:14:17 +08:00
|
|
|
!Schannel
|
2009-08-12 05:48:58 +08:00
|
|
|
</features>
|
|
|
|
<server>
|
|
|
|
https Server-localhost-sv.pem
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
simple HTTPS GET
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
--cacert %SRCDIR/certs/EdelCurlRoot-ca.crt https://localhost:%HTTPSPORT/%TESTNUMBER
|
2009-08-12 05:48:58 +08:00
|
|
|
</command>
|
2009-08-18 08:18:54 +08:00
|
|
|
# Ensure that we're running on localhost because we're checking the host name
|
|
|
|
<precheck>
|
|
|
|
perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );"
|
|
|
|
</precheck>
|
2009-08-12 05:48:58 +08:00
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2009-08-12 05:48:58 +08:00
|
|
|
Host: localhost:%HTTPSPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2009-08-12 05:48:58 +08:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|