This commit is contained in:
Looly
2023-09-08 19:09:40 +08:00
parent 57bb186f24
commit 83e94584bf
5 changed files with 48 additions and 5 deletions

View File

@@ -0,0 +1,20 @@
package org.dromara.hutool.http.client;
import org.dromara.hutool.core.lang.Console;
import org.dromara.hutool.http.client.engine.jdk.JdkClientEngine;
import org.dromara.hutool.http.ssl.SSLInfo;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
public class IssueI7ZRJUTest {
@SuppressWarnings({"resource", "TestFailedLine"})
@Test
@Disabled
void getBadSSlTest() {
final Response response = Request.of("https://expired.badssl.com/")
.send(new JdkClientEngine().init(ClientConfig.of().setSSLInfo(SSLInfo.DEFAULT)));
Console.log(response.body());
}
}