Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

201
Vistas
Sending Chunked HTTP request from Javascript

This question shows how to read a chunked response in Javascript, but I would like to send a chunked HTTP POST from Javascript. The documentation for XMLHttpRequest doesn't mention anything. Does the answer to this question mean that it's not possible due to browser restrictions on setting the header?

over 4 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

I don't think you can with XMLHttpRequest - it's old and somewhat limited, it's really just a backwards compatibility hack for a long-gone IE ActiveX component.

However, at the bleeding edge (not in Firefox yet) you can with fetch and TransformStream. This lets you send a stream from JS.

over 4 years ago · Santiago Trujillo Denunciar

0

Refer to this MDN page about Transfer-Encoding. You can set the type to chunked.

You have to specify how long each chunk will be, but it allows you to send data in chunks.

over 4 years ago · Santiago Trujillo Denunciar

0

I think XMLHttpRequest is very old, I think the alternative is to use Axios which is a newer JavaScript package which helps to handle network requests. It is much more easier than fetch and ajax in JavaScript.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda