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

java.net.SocketTimeoutException: timeout while listening to meetup open_events streaming API

I am trying to listen to an endless stream from meetups open_events streaming API. For some reason I get a socketTimeoutException after (what seems to be) a random period of time. My code works for the meetups rsvps streaming API. I am using a…
DMJessieSP
  • 15
  • 1
  • 4
0
votes
0 answers

libcurl, enabling chunk encoding with multipart form data

What i want to achieve is to be able to upload a file of any size and also send post data in the same request. The server is guaranteed to be able to handle chunked encoding and also support unlimited size of size. To achieve that I used…
Phenom
  • 223
  • 1
  • 8
0
votes
1 answer

Why are POSTs and PUTs ReadAsAsync() null, but ReadAsStringAsync() filled? AKA "How do I turn Chunking Off?"

I have a Web API project that has a few dozen RESTful methods, split about evenly between GETs, POSTs and PUTs. The system uses Entity Framework objects and Newtonsoft's JSON from Nuget (version 9.0.1). Something I've done recently has suddenly…
TomK
  • 523
  • 2
  • 7
  • 18
0
votes
0 answers

Why might a PHP-based HTTP request fail to allow chunked encoding?

I've got an XML-over-HTTP service that has been working quite well for a long time, and I've been asked to provide some sample PHP code to connect to it. I've written the code and it connects, etc. just fine, except that it's waiting for the…
Christopher Schultz
  • 20,221
  • 9
  • 60
  • 77
0
votes
1 answer

Server-Sent Events with Play: response only received when process killed

I'm trying to get the sample webapp play-streaming-scala to run and in some circumstances I get a weird behavior. I've got the app running directly on port 80 of some host and I'm checking the output with curl -iv --raw…
Jean-Philippe Pellet
  • 59,296
  • 21
  • 173
  • 234
0
votes
0 answers

How to consume a service with chunked-encoding transfer in java using Jersey Framework

I'd like to consume a restful service of a third party software tool For some reason, I'm getting the response without the Content-Length. So, the system send a response as chunked encoding. For that reason my code gets a broken json, as shown…
Celso Agra
  • 1,389
  • 2
  • 15
  • 37
0
votes
1 answer

CXF JAX-RS client always sends empty PUT requests in chunking mode regardles of AllowChunking setting

We perform PUT request to our party using CXF JAX-RS client. Request body is empty. A simple request invocation leads to server response with code 411. Response-Code: 411 "Content-Length is missing" Our party's REST-server requires Content-Length…
Eliahu
  • 172
  • 3
  • 9
0
votes
1 answer

What are the technical reasons to use multiple, smaller files instead of one large JS file?

Is there a difference between having one large Javascript file compared to having many different Javascript files? I recently learned that a separate application at my office contains two Javascript files for everything it requires. They're almost 2…
sab669
  • 3,984
  • 8
  • 38
  • 75
0
votes
1 answer

Reading and streaming responses from http servers that are using chunk transport in go

I have an http server that responds to requests via the chunk protocol. In this simple example, it responds with the time every second. I have another server that forwards requests to this time server and respond with the same chunk protocol. curl…
Keeto
  • 4,074
  • 9
  • 35
  • 58
0
votes
1 answer

Chunk size appears on Browser page

I'm implementing a small web server into a wifi micro. To aid in development and test, I have ported it to Windows console program. I use chunked transfer processing. The following is what shows up on the browser: 0059 Hello World 0 The 59 is the…
JHinkle
  • 186
  • 2
  • 10
0
votes
1 answer

Play Framework chunked responses not including chunk sizes

I'm trying to test out chunked responses in the Play Framework. I have a sample play app that's running on Play 2.3.7 The documentation for Play chunked responses says this: However when I try it exactly as advertised, I get: ➜ ~ curl -i -v…
letsgoyeti
  • 338
  • 2
  • 7
0
votes
1 answer

What's the best way to implement HTTP Post chunked request on iPhone?

There's a really old thread from 2008 that mentioned NSUrlConnection is quite buggy and leaks a lot. Is this still the case? Is there any Cocoa Touch class that already implements the chunked upload or am I better off using the CF classes?
rui
  • 11,015
  • 7
  • 46
  • 64
0
votes
1 answer

Is NSURLConnectionDataDelegate's didReceiveData method throttled?

The docs for the connection:didReceiveData delegate method of NSURLConnectionDataDelegate say that the didReceiveData message will be sent “as a connection loads data incrementally.” Surely, this can't mean that it didReceiveData will be sent for…
0
votes
1 answer

Get the number of received bytes in Netty for gzip chunked response

I'm trying to solve a problem in a description. Currently I have this pipeline: p.addLast(sslCtx.newHandler(ch.alloc())); p.addLast(new HttpClientCodec()); p.addLast(new MyCustomHttpContentDecompressor()); // p.addLast(new…
AdamSkywalker
  • 11,408
  • 3
  • 38
  • 76
0
votes
1 answer

HTTP Chunked transfer encoding

Thats from wikipedia: For version 1.1 of the HTTP protocol, the chunked transfer mechanism is considered to be always and anyways acceptable, even if not listed in the TE (transfer encoding) request header field Thats what I get from clients…
noname7619
  • 3,370
  • 3
  • 21
  • 26