HTTP POST using XHR with Chunked Transfer Encoding
I have a REST API that accepts an Audio file via an HTTP Post. The API has support for Transfer-Encoding: chunked request header so that the file can be uploaded in pieces as it is being created from a recorder running on the client. This way the server can start processing the file as it arrives for improved performance. For example: HTTP 1.1 POST .../v1/processAudio Transfer-Encoding: chunked [Chunk 1 256 Bytes] (server starts processing when arrives) [Chunk 2 256 Bytes] [Chunk 3 256 Bytes] ... The audio files are typically short and are around 10K to 100K in size. I have C# and Java code