the HTTP specification states that the Transfer-Encoding header is allowed for requests, but what error code should the server respond to if it does not understand that this Transfer-Encoding is.
As far as I know, the HTTP standard does not cover this feature, but maybe I just did not pay attention to it.
An unknown transfer encoding should result in an HTTP 501 "NOT IMPLEMENTED" error. What Apache does, at least.
Also see http://argray.com/unixfaq/httpd_error_codes.shtml
: RFC: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.2
, , HTTP WG.
: . :
3.6 RFC 2616:, - 501 ( ) ., .
3.6 RFC 2616:
, - 501 ( ) .
, .
.
, 5xx , - . , , 4xx , , . , 4xx, , .
Transfer-Encoding HTTP . 400 Bad Request.
Transfer-Encoding
400 Bad Request
, , 501, RFC-2616 , .
, , , 411 Length Required - Content-Length Transfer-Encoding , .
The RFC is a bit unclear, but IMHO it should be 406 invalid .
Source: https://habr.com/ru/post/1705503/More articles:Call using a GSM modem - vb.netIs it possible to declare and use an anonymous function in one expression? - c #Encapsulate a database connection in business objects or not? - designPHP-based search angles - phpVolume Shadow Copy (VSS) - c ++How to save the current element of the tab bar when the user shuts down and reloads into this element when restarting? - iosTransactedInstaller vs. Nested Installer - installerMissing table with Simpletest in CakePHP - phpSmallTalk Asynch GUI Updates - smalltalkSQL INSERT / SELECT, where there is no insertion table - sqlAll Articles