Sam
01/27/2023, 2:14 PMsuspend fun main() {
val client = HttpClient(Java)
val response1 = client.get("<https://sha256.badssl.com/>")
println(response1.status)
val response2 = client.get("<https://untrusted-root.badssl.com/>")
println(response2.status)
}
prints
200 OK
200 OK
😬
Even though the second URL doesn’t have a valid certificate.e5l
01/27/2023, 2:23 PMSam
01/27/2023, 2:27 PM