Chunked transfer encoding is a data transfer mechanism in version 1.1 of HTTP in which data is sent in a series of "chunks"
Questions tagged [chunked]
240 questions
8
votes
1 answer
XMLHttpRequest chunked response, only read last response in progress
I'm sending chunked data from a NodeJS application back to the browser. The chunks are really json strings. Problem I'm having is that every time the onprogress function is called, it adds on a string of the complete data. Meaning that response…

Daniel Setréus
- 552
- 4
- 16
8
votes
1 answer
HttpClient throws TruncatedChunkException accessing large chunked resource
[using httpcore 4.1.4, httpclient 4.2.5, Oracle JDK 1.7.0_25]
I'm trying to 'proxy' a connection to a third party web service on behalf of a webapp's javascript (AJAX) code and it seems to fail on large chunked responses, erroring part way through a…

Phasmal
- 3,840
- 2
- 16
- 11
7
votes
3 answers
Java HTTP server sending chunked response
I am working on a Java application which has a built in HTTP server, at the moment the server is implemented using ServerSocketChannel, it listens on port 1694 for requests:
msvrCh = ServerSocketChannel.open();
…

SPlatten
- 5,334
- 11
- 57
- 128
7
votes
1 answer
jQuery support Transfer-Encoding:chunked
i'm a web developer.
in my script use header() to set "Transfer-Encoding:chunked". and flush() to webpage.
it will print in webpage time-shared.
it works ok.
but, when i use jQuery.ajax() to request this.it always output all together(chunked…

Zaric Zhang
- 99
- 1
- 7
6
votes
2 answers
How to force http.client to send chunked-encoding HTTP body in python?
I want to send chunked HTTP body to test my own HTTP server.
So I wrote this python code:
import http.client
body = 'Hello World!' * 80
conn = http.client.HTTPConnection("some.domain.com")
url = "/some_path?arg=true_arg"
conn.request("POST", url,…

Celebi
- 1,280
- 3
- 16
- 25
6
votes
1 answer
Receiving chunked data endlessly
As you might know for sending chunked file in HTTP header, there is no content length, so the program must wait for 0 to understand that file ended.
--sample http header
POST /some/path HTTP/1.1
Host: www.example.com
Content-Type: text/plain …

arfo
- 321
- 2
- 11
6
votes
1 answer
How to handle chunked encoding in Python BaseHTTPRequestHandler?
I have the following simple web server, utilizing Python's http module:
import http.server
import hashlib
class RequestHandler(http.server.BaseHTTPRequestHandler):
protocol_version = "HTTP/1.1"
def do_PUT(self):
md5 =…

user582175
- 954
- 12
- 17
6
votes
1 answer
Read chunked binary response with Fetch API
How do I read a binary chunked response using the Fetch API. I'm using the following code which works insofar it reads the chunked response from the server. However, the data seems to be encoded/decoded somehow causing the getFloat32 to sometimes…

vidstige
- 12,492
- 9
- 66
- 110
6
votes
2 answers
How do I use the winhttp api with "transfer-encoding: chunked"
I'm trying to send some data to a web service which requires the "Transfer-encoding: chunked" header. It works fine with a normal POST request.
But as soon as I add the header, I always get:
The content could not be delivered due to the following…

sph
- 71
- 7
6
votes
1 answer
Chunked Response from an Iterator with Play Framework in Scala
I have a large result set from a database call that I need to stream back to the user as it can't all fit into memory.
I am able to stream the results from the database back by setting the options
val statement = session.conn.prepareStatement(query,…

Adam Ritter
- 989
- 1
- 9
- 19
6
votes
2 answers
HttpWebRequest chunked/async POST
Hi I want to upload some dynamic generated content to my web api.
On the client I use the HttpWebRequest. The data should be uploaded sync and I want to write to the stream AFTER(!) I executed the HTTP-request.
(From server to client it does work…

user437899
- 8,879
- 13
- 51
- 71
5
votes
2 answers
How to make Apache mod_deflate and Transfer-encoding : Chunked work together?
I am trying to use the bigpipe concept on our website. That means trying to send the response in chunks instead of sending it as a whole so that user feels that page is fast. I am successful in doing that by using the flushBuffer method on the…

Sameer Shah
- 123
- 1
- 9
5
votes
2 answers
Receiving Chunked HTTP Data With Winsock
I'm having trouble reading in some chunked HTTP response data using winsock.
I send a request fine and get the following back:
HTTP/1.1 200 OK
Server: LMAX/1.0
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Date: Mon, 29 Aug 2011…

homemade-jam
- 245
- 4
- 12
5
votes
1 answer
Dropzone JS with flask: chunking parallel uploading
I'm trying to use dropzone js with flask as backend. Dropzone configuration: