message Bad HTTP/0.9 request type 什么意思
时间: 2024-01-15 11:04:55 浏览: 57
这个错误意味着收到的 HTTP 请求是不合法的,可能是由于客户端发送的请求类型不正确。HTTP/0.9 是一个非常古老的 HTTP 协议版本,它只支持 GET 请求,而不支持其他类型的请求。因此,如果客户端发送了一个不合法的请求类型,例如 POST 或 PUT,服务器就会返回此错误。建议检查客户端发送的请求类型是否正确,或者升级到支持更现代的 HTTP 协议版本。
相关问题
code 400, message Bad HTTP/0.9 request type ('\x16\x03\x01\x00Á\x01\x00\x00½\x03\x03\x13\x82\x80\x9f')
这个错误通常是由于客户端向服务器发送了错误的请求类型而导致的。HTTP/0.9是一个非常早期的HTTP协议版本,它不支持现代的HTTP请求头和方法。而错误信息中的\x16\x03\x01\x00Á\x01\x00\x00½\x03\x03\x13\x82\x80\x9f是SSL/TLS握手协议的一部分,这表明客户端试图使用HTTPS协议与服务器通信,但是发送了错误的请求类型。要解决这个问题,可以尝试使用正确的HTTP协议版本或检查请求头和方法是否正确。
<a th:href="@{/message/delete/{messageType}(messageType=${messageType})/{eventId}(eventId=${event.id})}">
这是一个Thymeleaf模板引擎的语法,用于生成一个链接的href属性。其中,`@{/message/delete/{messageType}(messageType=${messageType})/{eventId}(eventId=${event.id})}`是一个Thymeleaf表达式,用于生成一个相对于当前应用程序的URL。`{messageType}`和`{eventId}`是路径变量,是由后端控制器方法来处理的。在表达式中,`(messageType=${messageType})`和`(eventId=${event.id})`是Thymeleaf的内联属性,用于将模板变量`${messageType}`和`${event.id}`的值分别传递给路径变量`{messageType}`和`{eventId}`。最终生成的链接的href属性值将包含路径变量和传递的参数,例如`/message/delete/1/123`,其中`1`和`123`分别代表`messageType`和`eventId`的值。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)