А что, если в POST подсунуть “Connection: close”, разрыва не происходит?
RFC не диктует применение данного хидера исключительно с GET.
HTTP/1.1 defines the “close” connection option for the sender to signal that the connection will be closed after completion of the response. For example,
Connection: close
in either the request or the response header fields indicates that the connection SHOULD NOT be considered `persistent’ (section 8.1) after the current request/response is complete. HTTP/1.1 applications that do not support persistent connections MUST include the “close” connection option in every message.
Start
Status = 0
Status = 0
Status = 0
Status = 0
Status = 0
Status = 0
Status = 0
Status = 0
Status = 0
CONNECTION_FAILED
Status = 0
Status = 0
Status = 0
Status = 0
Status = 0
tart
Status = 0
Status = 0
Status = 0
Status = 0
Status = 0
HTTP/1.1 200 OK
Date: Fri, 30 Dec 2022 16:07:12 GMT
Content-Type: text/html; charset=UTF-8
Content-LengStatus = 1
th: 17
Connection: close
Server: Apache
X-Content-Type-Options: nosniff
Text_POST= 1234
Status = 0
Status = 0
Status = 0
Status = 0
Status = 0
HTTP/1.1 200 OK
Date: Fri, 30 Dec 2022 16:07:15 GMT
Content-Type: text/html; charset=UTF-8
Content-LengtStatus = 1
h: 17
Connection: close
Server: Apache
X-Content-Type-Options: nosniff
Text_POST= 1234
Status = 0
Status = 0
Status = 0