I need to send a request with "Transfer-Encoding: chunked" header set. When I try to call xhr.setRequestHeader("transfer-encoding", "chunked"), Chrome throws the following error in console: "Refused to set unsafe header "content-length".
There is a lot of information about sending chunked responses. Is it possible to send chunked request to server?