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

nginx chunked transfer encoding fails

I am using an implemention of nginx with jetty servlets. For the purpose of my project I need to initialize two connection to the jetty servlet and keep them open. To initialize the downlink I use a normal request and I get the inputstream back.…
imps
  • 1,423
  • 16
  • 22
0
votes
1 answer

Why is my de-chunked request missing the ending CRLF?

I've just spent the past 10 hours trying to figure out why my http request was failing when I did a request.Content.ReadAsMultipartAsync().Result.Contents It kept returning the error: Unexpected end of MIME multipart stream. MIME multipart message…
Scottie
  • 11,050
  • 19
  • 68
  • 109
0
votes
2 answers

The Js and CSS files are not getting compressing in SAFARI browser

I've compressed all the java scripts and style sheets as an individual files, after compression its about 582 KB. While it is loaded in the web page the chrome browser inspect elements network displays 168 KB, similarly when I browse in safari the…
0
votes
1 answer

WSO2 APIM Gateway 1.6.0 inserts end of chunk character even if Content Length should be 0

We are trying to remove the end end of HTTP chunk character inserted by WSO2 APIM Gateway in HTTP body responses even if the Response Body should be empty (204 Status code). We are using WSO2 API manager 1.6.0, whenever it receives a message without…
JSL
  • 11
  • 4
0
votes
2 answers

Chunked responses in libevent2

I am trying to do a chunked response (of large files) in libevent this way:: evhttp_send_reply_start(request, HTTP_OK, "OK"); int fd = open("filename", O_RDONLY); size_t fileSize = ; struct evbuffer *databuff = NULL; for (off_t…
Sri
  • 1
  • 1
0
votes
1 answer

Corba chunked response

Is it possible corba service response one request multiple times? In my case, corba service collects a bunch of data which takes a long time for request. In order to reduce delay client receives response, we want service responses soon when the…
shijie xu
  • 1,975
  • 21
  • 52
0
votes
1 answer

A specific Request is not getting recording in Jmeter 2.9

I tried to record a complete screen but unable to record a single Response. The Screen is for getting live data. So when I clicked on Live Data the page is getting recorded(Jmeter2.9) apart from the Response which contains the Live Data. It is…
0
votes
1 answer

Transfer encoding chunked: Ordering and loss of chunk

I had a query regarding HTTP chunked transfer encoding. Is there a possibility that the chunks would arrive in different order and how is it reordered in that case? Similarly, if one of the chunks is lost, is there a way to detect it? I had checked…
neorg
  • 516
  • 7
  • 21
0
votes
1 answer

Does event-stream supports non utf-8 encoding in nodejs?

I'm trying to upload and parse file line by line by like the following: var fs = require('fs'), es = require('event-stream'), filePath = './file.txt'; fs.createReadStream(filePath) .pipe(new Iconv('cp866', 'windows-1251')) …
Erik
  • 14,060
  • 49
  • 132
  • 218
0
votes
0 answers

apache transfer-encoding chunked enable

I have a RESTFUL service that receive a huge videos/pictures from iphone/ipad devices, so we decided to go with NSURLSessionUploadTask and this type of uploads uses chunked encoding, So in my back-end I'm using PHP And The server is Apache…
AboElzooz
  • 309
  • 4
  • 16
0
votes
0 answers

The best way for decoding gzip compressed response

Example Code:
mpyw
  • 5,526
  • 4
  • 30
  • 36
0
votes
0 answers

Can django support chunked transfer encoding (in http push request) in general and when deployed on heroku?

We have a web application written in django deployed on heroku. One of our requirements is to get XML from an external source which is pushed to our domain. The XML from the external source is pushed periodicly to a URL using a http push request,…
Omer
  • 159
  • 2
  • 7
0
votes
2 answers

Upload large file to google drive (php google drive api)

I can upload files to google drive with this code that( size < 100 mb) but for larger files show this error: Fatal error: Out of memory (allocated 2359296) (tried to allocate 300457543 bytes) in /home/bahmanx2/public_html/gd/index.php on line…
0
votes
0 answers

Rails HTTP streaming gives 'completed' message in logs before rendering occurs

My root URL page is loaded via a call to render :stream => true, whereas all my other controllers render normally. When accessing the site via nginx, everything renders fine. When accessing via localhost (not going through nginx) I get no response.…
0
votes
1 answer

JAVA: Chunked Tranfer over Jersey

I have a web service running which will be used by a client side mobile application. One of the services is to return an array of JSON objects (over 1000 objects), each object of considerable size. The whole computation on the server side takes some…
Some guy
  • 1,210
  • 1
  • 17
  • 39