HsacExamples.SlimTests.HttpTests.CustomHttpConfig.HttpsWithoutCertificateVerification



This way of disabling SSL verification is deprecated, please use http client setup to achieve the same result. See HttpsWithoutCertificateVerificationViaSetup.

Performs HTTPS GET on domains that would normally throw an exception because of bad SSL certificates.

Use at your own risk, this makes https potentially as unsafe as http!

script http test
disable SSL verification
get from https://expired.badssl.com/
get from https://wrong.host.badssl.com/
get from https://self-signed.badssl.com/
get from https://untrusted-root.badssl.com/

Note that 'disable SSL verification' lasts for the rest of the test run, or until you call 'enable SSL verification', like this:

script http test
enable SSL verification

Included page: .HsacExamples.SlimTests.HttpTests.CustomHttpConfig.TearDown (edit)

Since changing HTTP client setting last for the entire run we ensure http test's HTTP client is set back to default after each test.
The original default setting is saved in the SuiteSetUp of this suite.

script http client setup
configure http test with $originalClient