summaryrefslogtreecommitdiff
path: root/libcurl/tests/basic/testscript
blob: 054eead710e303940964adf33cd9b59dc9803462 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# file      : tests/basic/testscript
# license   : cURL License; see accompanying COPYING file

: http
:
$* 'http://www.example.com' >>~%EOO%
  %.+
  EOO

: https
:
: Test that an HTTPS URL is queried successfully via the system SSL backend
: on Windows and MacOS/Clang and fails for other targets that use the OpenSSL
: backend by default.
:
if ($c.target.class == 'windows' || \
    $c.target.class == 'macos' && $c.id == 'clang-apple')
{
  $* 'https://www.example.com' >>~%EOO%
    %.+
    EOO
}
else
{
  $* 'https://www.example.com' 2>~'%failed to request .+%' != 0
}