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
4
votes
3 answers
Any way to chunk gzip with Apache and PHP
I have a web application on a site that takes a while (~10 seconds) to complete a portion of the page near the bottom - it has been as optimized as it can be, and caching is not an option.
We have compression enabled on the server via an .htaccess…

donatJ
- 3,105
- 3
- 32
- 51
4
votes
1 answer
Allow hop-by-hop header Django
I'm writing a demo proxy server with Django 1.6 and Python 3.4. I get an error when the response has this header:
Transfer-Encoding=chunked
The error is:
Traceback (most recent call last):
File…

Tuan Chau
- 1,243
- 1
- 16
- 30
4
votes
3 answers
How to download chunked data with Pythons urllib2
I'm trying to download a large file from a server with Python 2:
req = urllib2.Request("https://myserver/mylargefile.gz")
rsp = urllib2.urlopen(req)
data = rsp.read()
The server sends data with "Transfer-Encoding: chunked" and I'm only getting some…
user923543
4
votes
1 answer
Comet: XMLHttpRequest.responseText grows endlessly
All,
I'm working on implementing a comet JS library. Right now I'm tracking the size of the response text and returning the new portion as chunks arrive. This provides my callback the new data, but is a very obvious memory leak. Is there a way to…

Goldfish
- 73
- 1
- 6
4
votes
0 answers
Why is my Rails app using chunked transfer encoding?
I am not using stream anywhere in my app, but responses are still being sent with transfer-encoding: chunked
additional mystery #1: the header is lowercase
additional mystery #2: there is an etag, which by default in rails is calculated using the…

John Bachir
- 22,495
- 29
- 154
- 227
4
votes
1 answer
How to remove Transfer-Encoding: chunked in the HTTP response
I have made a HTTP endpoint (REST in Java, Spring Framework, Apache Tomcat), in which the HTTP response has the header "Transfer-Encoding: chunked". I don't know if it is created by the servlet or the server.
I don't want that the endpoint responses…

Carlos AG
- 1,078
- 1
- 12
- 16
4
votes
1 answer
Transfer-Encoding: Chunked causes 404 The system cannot find the file specified
I am attempting to post to a page served by IIS6 and I am adding the following header:
Transfer-Encoding: chunked
When I do this, I get a 404 error: The system cannot find the file specified.. If I make the same request to the page without this…

Fenton
- 241,084
- 71
- 387
- 401
3
votes
2 answers
Kotlin: Split Sequence by N items into Sequence>?
How to "take(N)" iteratively - get a Sequence, each inner sequences having next N elements?
I am writing a high-load application in Kotlin.
I have tens of thousands of entries to insert to a database.
I want to batch them by, say, 1000.
So…

Ondra Žižka
- 43,948
- 41
- 217
- 277
3
votes
0 answers
Uploading Large Files to Node.JS Server with Request Size Limit
The situation:
I have a Node.JS server. The NGINX is set to limit the size of request to be 5MB.
I need to upload large files (~15MB) from the client running in a browser to the server.
There are 3 instances of the server running WITHOUT shared…

Huy Doan
- 81
- 1
- 2
- 8
3
votes
0 answers
Servlet ignores Content-Length and uses Transfer-Encoding: chunked based on User-Agent
I want to compress response body in javax.servlet.Filter. Here is my code
byte[] bytes = // compressing response body
response.addHeader("Content-Encoding", "gzip");
response.addHeader("Content-Length",…

Арсен Мирзаян
- 167
- 10
3
votes
1 answer
Netty MessageToMessageCodec decode method receives only 512byte chunk of large response
I'm working on the Apache PLC4X project where we implement industry PLC protocols using Netty. We are currently encountering a problem with decoding responses as soon as the size of these exceed a limit of 512 bytes.
As soon as the size of the…

Christofer Dutz
- 2,305
- 1
- 23
- 34
3
votes
1 answer
CURL chunked POST from infinite pipe?
I want to continuously post an infinite binary data stream to a webserver.
So I'm using the following command:
curl -X POST -H "Transfer-Encoding: chunked" -d 'hello' http://127.0.0.1:9000
As a test, I'm piping the output of the 'yes' command:
$…

Ace17
- 81
- 2
- 6
3
votes
1 answer
Dropzone.js - Chunked file upload
Currently when parallelChunkUploads is set to true, all the chunks are getting uploaded at the same time. If the file size is 6GB and the chunk size is 10MB, 600 chunks are getting uploaded at the same time. Is there a way to control the number of…

sivagee
- 31
- 3
3
votes
1 answer
How to determine content-data length from chunked encoding if HTTP header not sent
How to determine the content-data length if the header is not sent and instead you receive Transfer-Encoding: chunked header?

Mohamad Elmasri
- 461
- 2
- 5
- 12
3
votes
0 answers
PHP CURL error 18 on Chunked Requests (Hidden Timeout Variable)
I've been going crazy because of a timeout that is occurring on chunked requests with PHP version 5.5 and curl version 7.51.0. PHP is requesting a set of data from a Scala Play Framework service, which is returning a chunked response.
What's…

Shea Hawkins
- 31
- 2