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
1 answer

Receiving 411 errors with Haproxy + Nging when uploading with chunked encoding

here is my server architecture: port 443 --> haproxy 1.6.3 --> nginx 1.1.19 --> uwsgi 2.0.13.1 --> wsgi python server (Django) I know it's weird to use both haproxy+nginx but I have no choice because I need haproxy for another project on the same…
alexislg
  • 1,018
  • 13
  • 20
2
votes
1 answer

C# "Tag" 4-byte Hex Chunks for reconstruction to original string later

I am wrestling with a particular issue and like to ask for guidance on how I can achieve what I seek. Given the below function, a variable length string is used as input which produces a 4-byte Hex chunk equivalent. These 4-byte chunks are being…
2
votes
2 answers

Jersey with ChunkedOutput and JSON in Dropwizard Application

I'm using Dropwizard 0.9.1 in my application and I have a GET-Method returning a ChunkedOuput like described here. MediaType should be APPLICATION_JSON and it works but the result is not a valid JSON. Here is the example…
heaphach
  • 1,492
  • 1
  • 20
  • 44
2
votes
0 answers

Delphi XE7 ISAPI Soap Server - "Range check error" when recieving chunked Transfer-Encoding

We have a Delphi SOAP Web Service running under IIS 7.5 (Windows Server 2008 R2), and we are experiencing a problem when a client sends chunked requests. After the client sends the requests, the server responds almost immediately with a HTTP 500…
lucasdclopes
  • 147
  • 9
2
votes
2 answers

How to send HTTP chunked response to emulate a video stream using Proxygen and Folly?

I am writing a HTTP video streaming server based on Facebooks Proxygen. There is no seeking planned. Using the proxygen::ResponseBuilder I am abled to send chunks of a webm encoded video as HTTP response, i.e. chunked transfer encoding is working.…
malik
  • 66
  • 9
2
votes
3 answers

Does Alamofire support chunked data response?

It is unclear as to whether Alamofire supports chunked data for large or progressive data sets. This is a much needed feature for my application, otherwise I may have to look into alternative methods. On the Alamofire Github page, it states Progress…
Levi Roberts
  • 1,277
  • 3
  • 22
  • 44
2
votes
1 answer

"file_get_contents()" returns only the first chunk (WebDAV)

I'm a student, new to PHP (and web development in general), and am trying to write a simple interface with my college's WebDAV server. The following code (with appropriate credentials and address), which uses an HTTP WebDAV Client plugin I found…
2
votes
2 answers

Can SVG render partially if gzipped and chunk-transferred?

I have some large, dynamically generated SVGs that are being served over a relatively slow internet connection. I'm trying to optimize them to be viewable as fast as possible. If I set the server to Content-Encoding: gzip and Transfer-Encoding:…
Scott Stafford
  • 43,764
  • 28
  • 129
  • 177
2
votes
2 answers

Abort HTTP chunk encoded response with Error Page

I'm extending this previous question: Aborting a HTTP/1.1 chunk encoded response When I abort a chunked response Chrome displays a blank page and the dev console reports net::ERR_INCOMPLETE_CHUNKED_ENCODING. IE displays the incomplete page. Is there…
skibulk
  • 3,088
  • 1
  • 34
  • 42
2
votes
1 answer

What is the LIBCURL equivalent to --N/--no-buffer?

I would like to read chunks of data from an http response as soon as the server flushes them, regardless of their size. Some chunks may only be 8 bytes.
Nick Retallack
  • 18,986
  • 17
  • 92
  • 114
2
votes
3 answers

PHP File Serving Script: Unreliable Downloads?

This post started as a question on ServerFault ( https://serverfault.com/questions/131156/user-receiving-partial-downloads ) but I determined that our php script was the culprit. So I'm issuing an updated question here about what I believe is the…
Jeffrey Blake
  • 9,659
  • 6
  • 43
  • 65
2
votes
0 answers

net::ERR_INCOMPLETE_CHUNKED_ENCODING when using pthreads only

I'm trying to add threading to a web resource in an attempt to speed it up a bit. Everything is running properly 1/3 of the time. The other 2/3 result in either net::ERR_INCOMPLETE_CHUNKED_ENCODING or net::ERR_EMPTY_RESPONSE This happens in…
TheBat
  • 1,006
  • 7
  • 25
2
votes
1 answer

Win32: What is the status of chunked encoding support in WinHttpReadData?

The documentation for WinHttpReadData says, regarding HTTP's chunked transfer coding: Starting in Windows Vista and Windows Server 2008, WinHttp enables applications to perform chunked transfer encoding on data sent to the server. When the…
Cheeso
  • 189,189
  • 101
  • 473
  • 713
2
votes
2 answers

Enable Chunked Transfer Encoding in ASP.NET

I have an ASP.NET 3.5 website residing on IIS7. I am using dynamic compression and wanted to see if I can enable chunked encoding. Is there some setting on IIS or web config that enables it?
webly
  • 327
  • 2
  • 7
  • 18
2
votes
2 answers

Reading chunked data

I have a client that sends chunked data. My server is expected to read that data. On the server i am using Tomcat 7.0.42 and expecting this data to be loaded via an existing servlet. I was looking up google to see if i can get any examples that read…
Victor
  • 1,207
  • 2
  • 13
  • 21