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
163
votes
43 answers
Chrome net::ERR_INCOMPLETE_CHUNKED_ENCODING error
For the past two months, I have been receiving the following error on Chrome's developer console:
net::ERR_INCOMPLETE_CHUNKED_ENCODING
Symptoms:
Pages not loading.
Truncated CSS and JS files.
Pages hanging.
Server environment:
Apache…

Wayne Whitty
- 19,513
- 7
- 44
- 66
39
votes
3 answers
How to write javascript in client side to receive and parse `chunked` response in time?
I'm using play framework, to generate chunked response. The code is:
class Test extends Controller {
public static void chunk() throws InterruptedException {
for (int i = 0; i < 10; i++) {
String data = repeat("" + i, 1000);
…

Freewind
- 193,756
- 157
- 432
- 708
36
votes
5 answers
Chunked encoding and content-length header
Is it possible to set the content-length header and also use chunked transfer encoding? and does doing so solve the problem of not knowing the length of the response at the client side when using chunked?
the scenario I'm thinking about is when you…

p00ya00
- 796
- 1
- 10
- 20
26
votes
2 answers
Difference between multipart and chunked protocol?
Can some experts explain the differences between the two? Is it true that chunked is a streaming protocol and multipart is not? What is the benefit of using multipart?

user776635
- 861
- 3
- 9
- 13
19
votes
2 answers
Handling plupload's chunked uploads on the server-side
When I use plupload to chunk files (setting option chunk_size), I get a separate PHP request for each chunk. Looking at $_FILES variable, each chunk is of type "application/octet-stream".
Is there any simple, standard and comfortable way how to…

Tomas
- 57,621
- 49
- 238
- 373
14
votes
2 answers
HTTP 1.1 - Can a client request that transfers not be "chunked"?
Is it possible for a HTTP 1.1 client to set a header value that indicates the responses to requests should not be chunked? Or is the only way to prevent this, is to send a HTTP 1.0 request? I've tried googling around, but all I can find is ways to…

Matt
- 774
- 1
- 10
- 28
13
votes
2 answers
Why Tomcat returns different headers for HEAD and GET requests to my RESTful API?
My initial purpose was to verify the HTTP chunked transfer. But accidentally found this inconsistency.
The API is designed to return a file to client. I use HEAD and GET methods against it. Different headers are returned.
For GET, I get these…

smwikipedia
- 61,609
- 92
- 309
- 482
13
votes
3 answers
How do I disable 'Transfer-Encoding: chunked' encoding in Varnish?
Using Varnish 4, I have a set of backends that're responding with a valid Content-Length header and no Transfer-Encoding header.
On the first hit from a client, rather than responding to the client with those headers, Varnish is dropping the…

Don MacAskill
- 868
- 1
- 7
- 14
11
votes
2 answers
Angular7: unable to set {responseType: 'text'}
Scenario:
Upon an API call from Angular7, i am calling Node (via express) and returning chunked data of type string - I want to capture this string data and display it as string
Server-side:
From Node backend, the data is being sent is 'text' and…

Akber Iqbal
- 14,487
- 12
- 48
- 70
10
votes
3 answers
Tomcat occasionally returns a response without HTTP headers
I’m investigating a problem where Tomcat (7.0.90 7.0.92) returns a response with no HTTP headers very occasionally.
According to the captured packets by Wireshark, after Tomcat receives a request it just returns only a response body. It returns…

Kohei Nozaki
- 1,154
- 1
- 13
- 36
10
votes
6 answers
Incomplete Chunked Encoding Error Chrome / Specific PCs
We develop various websites for clients and have recently experienced a strange problem with a few of our "heavier" websites.
A couple of our Magento stores, and 1 other PHP based website only on my PC and 1 client's PC have been failing to load on…

Liam Webster
- 111
- 1
- 1
- 5
9
votes
3 answers
How to decode/inflate a chunked gzip string?
After making a gzip deflate request in PHP, I receive the deflated string in offset chunks, which looks like the following
Example shortened greatly to show…

user1309276
- 109
- 1
- 6
9
votes
1 answer
Transfer Encoding chunked with okhttp only delivers full result
I am trying to get some insights on a chunked endpoint and therefore planned to print what the server sends me chunk by chunk. I failed to do so so I wrote a test to see if OkHttp/Retrofit are working as I expect it.
The following test should…

WarrenFaith
- 57,492
- 25
- 134
- 150
9
votes
1 answer
Have any Android developers had success receiving chunked transfer protocol from a web service?
I have struggled with several class implementations to retrieve chunked data without success. Following is a simplified code module that has the problem. After surfing around the web, it appears there have been problems in the past (2009, 2010;…

mobibob
- 8,670
- 20
- 82
- 131
9
votes
2 answers
How to use URLSessionStreamTask with URLSession for chunked-encoding transfer
I am trying to connect to the Twitter streaming API endpoint. It looks like URLSession supports streaming via URLSessionStreamTask, however I can't figure out how to use the API. I have not been able to find any sample code either.
I tried testing…

iOS dev
- 522
- 6
- 14