在 GET 请求的正文中发送负载而不是 POST 来解析 HTTP 414 URI 太长

Sending payload in GET request's body instead of POST to resolve HTTP 414 URI Too Long

414 错误是由 GET 请求中的长 URI 参数引起的。有人建议 here and here to use a POST request in that case, however, wouldn't it be more realistic to send the data in the GET request's body, even though it is not recommended to do so?

GET 请求正文中发送数据不是一个好习惯。根据RFC7231:

A payload within a GET request message has no defined semantics; sending a payload body on a GET request might cause some existing implementations to reject the request.

因此,它不是“更现实”,而是更不现实,因为某些浏览器或服务器可能会拒绝此类 HTTP 请求。