0

Is there a way to request a server to not answer request with Transfer-Encoding: chunked on XMLHttpRequest?

Like passing a value in the header during the request?

In another SO question they said one can use HTTP 1.0, I don't know if this is possible with XMLHttpRequest.

user5507535
  • 1,580
  • 1
  • 18
  • 39
  • 1
    Does this answer your question? [How to tell the HTTP server to not send chunked encoding](https://stackoverflow.com/questions/31969990/how-to-tell-the-http-server-to-not-send-chunked-encoding) – Richard Barker Apr 08 '21 at 18:56
  • See [Is there a way to force an XMLHttpRequest to use HTTP/1.1?](https://stackoverflow.com/q/56675358/215552) – Heretic Monkey Apr 08 '21 at 20:48
  • @HereticMonkey, OK, but is there another way to set it to not send chunked? – user5507535 Apr 08 '21 at 21:37
  • I would be helpful to understand why you want this. – Julian Reschke Apr 09 '21 at 04:14
  • @JulianReschke I'm having an issue where ExtJS framework isn't working well while getting data from my API, I'm not sure, but maybe it's because the API is answering with `Transfer-Encoding: chunked`, so I want to try having the answer delivered without it. – user5507535 Apr 09 '21 at 12:12
  • The browser is removing the chunked transfer coding in XMLHttpRequest (and similar APIs), so it really should not matter. – Julian Reschke Apr 10 '21 at 07:56

0 Answers0