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
2
votes
0 answers

nginx 1.4.4 + https + chunk encoding

I have a nginx server working as a proxy for a nodejs app displaying chunked data. Everything works perfectly over http but when i try to use https the chunk encoding seems to not work. I know nginx support http chuck encoding since version 1.3.9…
nathanr
  • 150
  • 1
  • 9
2
votes
2 answers

Netty - How to combine ChunkedWriteHandler with HttpContentCompressor

I'm trying to implement an HTTP-Server (using Netty) that not only serves "regular" html-pages, but also large files. Thus, I want to use the ChunkedWriteHandler as well as the HttpContentCompressor within my pipeline. Currently, this pipeline is…
Sebastian Schmitt
  • 433
  • 1
  • 5
  • 18
2
votes
1 answer

Play Framework 2: Handle client disconnection in chunked response

I'm forwarding some real-time data to web clients using chunked encoding. In the following way, I could make HTTP streaming responses, public Result action() { return ok(new StringChunks() { public void onReady(final Out out) { …
lyomi
  • 4,230
  • 6
  • 30
  • 39
2
votes
0 answers

How to get an HTTP response where Content-Encoding: chunked so I can get chunk-extensions

As the title suggests, I need to be able to get the "raw" HTTP response when Content-Encoding: chunked so I can manually parse it and extract data I need from chunk-extensions in the response body. So far I've been using System.Net.Http.HttpClient…
DannyH
  • 113
  • 1
  • 6
2
votes
1 answer

how to get the size of chunk in http response using java if transfer encoding is chunked

How to know the size of the chunk of HTTP response if transfer encoding is chunked.I am unable to get the logic. Please help me.And provide me some sample java code to get the size of chunk.I read in some books that size of each chunk is specified…
user2365917
  • 1,095
  • 5
  • 15
  • 21
2
votes
1 answer

Keep NSURLConnection open + Chunked Encoding Upload

I want keep a NSURLConnection open, and upload data via chunked transfer encoding. I have a buffer that reads in data, and as soon as I read in the data, I want to upload this data. I won't know how much data will be read ahead of time, so I need to…
yeesterbunny
  • 1,847
  • 2
  • 13
  • 17
2
votes
2 answers

Changing Netty 4 HTTP File Server example to use ChunkedStream instead of ChunkedFile

I'm trying to wrap my head around Netty 4 way of implementing a HTTP Server that serve HttpResponses bodies using chunked transfer-encoding when total data size is unknown. As a starting point, I simply changed the HttpStaticFileServerHandler (found…
eskatos
  • 4,174
  • 2
  • 40
  • 42
2
votes
2 answers

How to disable transfer-encoding:chunked websphere

We have a webservice running on Websphere 6.1 using the IBM JAX-RPC based webservices. Client is sending requests without HTTP header of transfer-encoding:chunked (They specify content-length). The response from websphere always has…
zkarthik
  • 949
  • 1
  • 10
  • 18
2
votes
1 answer

Decompress a gzip-compressed HTTP-Response (chunked encoding)

like descriped in the title, I want to decompress a HTTP-Resonse. Here is what I do: receive the http-response check the content-encoding (lets assume its gzip) exctract the content from the http-response ( the result of this point is a byte array…
user1826831
  • 735
  • 3
  • 9
  • 17
2
votes
1 answer

CFNetwork reads http header Transfer-Encoding Identity but wireshark shows chunked

I am using the CFNetwork to read through the headers and I am trying to read what type of "Transfer-Encoding" my request is. It should be "chunked" Wireshark shows the correct request of "Transfer-Encoding: chunked", but the actually code using…
Michael Wildermuth
  • 5,762
  • 3
  • 29
  • 48
2
votes
0 answers

IIS 7.5 Compression & Chunked Transfer Issue

I had to render a json feed. Since the size of the feed is around 10 MB, I decided to enable compression in ASPNET. I enabled dynamic compression for json mime type. Compression works well and reduced the size to 1 MB (significant compression…
2
votes
2 answers

Perl Split Binary Data into Chunks with Unpack

I'm using Transfer-Encoding: chunked to write an HTTP response. The response is split into pieces via the following: my $template = "a$buffer_size" x int(length($response)/$buffer_size) . 'a*'; foreach my $buffer (unpack $template, $response){ …
xpsd300
  • 175
  • 2
  • 11
1
vote
1 answer

Is there a max recommended size on bundling/combining js files due to chunking or packet loss?

So we all have heard that its good to bundle your javascript and css into as few files as possible. Of course it is, but it seems to me that the story is too simple. See if my logic makes sense here. Obviously fewer HTTP requests is fewer round…
George Mauer
  • 117,483
  • 131
  • 382
  • 612
1
vote
1 answer

using chunked transfer together with content-disposition

I'm using the following headers to push downloads to the client from a generic path like /controller_name: Transfer-Encoding: chunked Content-Disposition: attachment However, the browsers seem to be showing the 'Save as' dialog after all data is…
m33lky
  • 7,055
  • 9
  • 41
  • 48
1
vote
0 answers

Sending mp3 over http chunked encoding in vb.net

Hi I'm trying to send mp3 data over http with chucked encoding. The idea is that the mp3 will later be a live stream (of mp3 pieces) so I don't know what the content length will be. Here is my code which isn't playable when I access with a…
acheo
  • 3,106
  • 2
  • 32
  • 57