I need help with making a partial content request using an XMLHttpRequest object in JavaScript. Currently, I am trying to load a large binary file from the server and want to stream it similar to how HTML5 video is handled.
While setting the Range header using setRequestHeader works fine, I'm facing issues with the Accept-Encoding header being automatically set to "gzip,deflate" by Chrome. According to W3C standards, I cannot override this header.
Does anyone know a method to make the server respond with a 206 partial content when using the XMLHttpRequest object solely through JavaScript?