Questions tagged [chunked-encoding]

Chunked encoding involves transferring the body of a message as a series of chunks, each with its own chunk size header.

This defined process means that an application-generated entity body, or a large entity body, can be sent in convenient segments. The client or server knows the chunked message is complete when the zero length chunk is received.

The body of a chunked message can be followed by an optional trailer that contains supplementary HTTP headers, known as trailing headers. Clients and servers are not required to accept trailers, so the supplementary HTTP headers should only provide non-essential information, unless a server knows that a client accepts trailers.

To use chunked transfer-coding, both the client and server must be using HTTP/1.1. A chunked message cannot be sent to an HTTP/1.0 client. The requirements that apply to chunked transfer-coding and the use of trailing headers are defined in the HTTP/1.1 specification

Source

421 questions
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
10
votes
2 answers

Apache ERR_INCOMPLETE_CHUNKED_ENCODING

Sometimes, for no real reason I get the following console message and a completely blank screen after deploying code to the server: net::ERR_INCOMPLETE_CHUNKED_ENCODING An Apache restart fixes it but I can't see why it happens. The file system…
jimbo2087
  • 1,034
  • 8
  • 20
10
votes
1 answer

What are the ways to display 'chunked' responses as soon as they come into AngularJS?

Currently I have a problem displaying 'chunks' of responses that I am sending from my Web Service Node.js server (localhost:3000) to a simulated client running on a Node.js server (localhost:3001). edit * - Current implementation just uses…
The1Kast
  • 113
  • 1
  • 7
9
votes
2 answers

Content-Range for resuming a file of unknown length

I create a ZIP archive on-the-fly of unknown length from existing material (using Node), which is already compressed. In the ZIP archive, files just get stored; the ZIP is only used to have a single container. That's why caching the created ZIP…
cato_minor
  • 663
  • 6
  • 11
9
votes
1 answer

Can HTTP multipart and chunking coexist?

I'm using apache HttpClient to post several files to server. Here's the code: public static HttpResponse stringResponsePost(String urlString, String content, byte[] image, HttpContext localContext, HttpClient httpclient) throws Exception…
Mehdi
  • 1,075
  • 1
  • 11
  • 24
8
votes
3 answers

how to handle / read the response with "Transfer-Encoding:chunked"?

May i know how to handle / read the response with "Transfer-Encoding:chunked"? Currently im using common-httpclient.3.1 My current coding as followings (can handle response with content-length in header only) :- httppost = new…
Jacelyn
  • 103
  • 1
  • 1
  • 4
8
votes
2 answers

PHP/Javascript chunked upload: IE9 corrupt file if filesize is over upload_max_filesize or post_max_size

I'm using Plupupload to upload files. if I try to load an exe with IE9 and the filesize it's over upload_max_filesize or post_max_size setting, the uploaded file is corrupt. This is the PHP script that I am using:
Simone Nigro
  • 4,717
  • 2
  • 37
  • 72
8
votes
1 answer

ASP.NET Web Api - the framework is not converting JSON to object when using Chunked Transfer Encoding

I have an http client in Android sending HTTP PUT requests to a REST api implemented with C# and ASP.NET WebApi framework. The framework should be able to magically convert (deserialize) the JSON into a model class (plain object) as long as the JSON…
diegosasw
  • 13,734
  • 16
  • 95
  • 159
8
votes
1 answer

MVC Controller returning Chunked content encoding

So I have an MVC project. This MVC project contains one Controller, that needs to stream content back to the client. When the streaming starts, there is no way to determine the content length (it is calculated on-the-fly). So I open…
J T
  • 4,946
  • 5
  • 28
  • 38
8
votes
3 answers

Understanding Python HTTP streaming

I'm struggling to access a streaming API using Python and Requests. What the API says: "We’ve enabled a streaming endpoint to for requesting both quote and trade data utilizing a persistent HTTP socket connection. Streaming data from the API…
Turtles Are Cute
  • 3,200
  • 6
  • 30
  • 38
8
votes
1 answer

How to POST chunked encoded data in Python

I am trying to POST chunked encoded data to httpbin.org/post. I tried two options: Requests and httplib Using Requests #!/usr/bin/env python import requests def gen(): l = range(130) for i in l: yield '%d' % i if…
Piyush Kansal
  • 1,201
  • 4
  • 18
  • 26
7
votes
2 answers

Groovy HTTPBuilder : Getting the entity content from a GZIPed Chunked response

I need to send a POST request to a web server and be able to read the response sent by said server. I tried using the HTTPBuilder lib with this code : def http = new HTTPBuilder('http://myServer/') http.setProxy("Proxy_IP", 8080, "http") postBody =…
serty2
  • 73
  • 1
  • 4
7
votes
6 answers

Python HTTP server that supports chunked encoding?

I'm looking for a well-supported multithreaded Python HTTP server that supports chunked encoding replies. (I.e. "Transfer-Encoding: chunked" on responses). What's the best HTTP server base to start with for this purpose?
slacy
  • 11,397
  • 8
  • 56
  • 61
7
votes
1 answer

App Engine: Is it possible to disable Transfer-Encoding: Chunked for large static files?

As a follow-up to this question, is it possible to disable the "Transfer-Encoding: Chunked" method for large static files, therefore forcing a Content-Length to be returned instead? My site serves a few Flash files. The small ones (500-700kb) report…
Saxon Druce
  • 17,406
  • 5
  • 50
  • 71
7
votes
1 answer

How to fix ERR_INVALID_CHUNKED_ENCODING error?

I have a Clojure application that acts as a proxy service. The goal is to proxy requests to http://127.0.0.1:3000 (Grafana service) through the path "/grafana", so that if I access http://127.0.0.1/grafana through the browser, it should proxy my…
Edmond
  • 615
  • 1
  • 5
  • 15
1 2
3
28 29