dromara / forest

A high-level and lightweight declarative HTTP client framework for Java. it makes sending HTTP requests in Java easier.
MIT License
1.71k stars 217 forks source link

Https使用Address配合sslProtocol无法正常请求 #208

Open yikolemon opened 1 month ago

yikolemon commented 1 month ago

在使用@Address配合sslProtocol="TLS"情况下出现下面的错误返回,

只有在使用baseUrl并在内添加https://xxx的协议才能正常调用:

Snipaste_2024-09-30_15-22-13

错误返回:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>

<head>
    <title>400 The plain HTTP request was sent to HTTPS port</title>
</head>

<body>
    <h1>400 Bad Request</h1>
    <p>The plain HTTP request was sent to HTTPS port.
        <hr />Powered by Tengine
</body>

</html>