Questions tagged [transfer-encoding]

Chunked transfer encoding is a data transfer mechanism in version 1.1 of the Hypertext Transfer Protocol (HTTP) in which a web server serves content in a series of chunks.

142 questions
111
votes
2 answers

Transfer-Encoding: gzip vs. Content-Encoding: gzip

What is the current state of affairs when it comes to whether to do Transfer-Encoding: gzip or a Content-Encoding: gzip when I want to allow clients with e.g. limited bandwidth to signal their willingness to accept a compressed response and the…
Evgeniy Berezovsky
  • 18,571
  • 13
  • 82
  • 156
60
votes
2 answers

Transfer-Encoding: chunked

I was trying to understand more on Transfer-Encoding:chunked. referred some articles: http://zoompf.com/blog/2012/05/too-chunky and "Transfer-Encoding: chunked" header in PHP. I still didn't get very clear picture. I understand setting this encoding…
Vicky
  • 5,380
  • 18
  • 60
  • 83
17
votes
2 answers

HTTP POST using XHR with Chunked Transfer Encoding

I have a REST API that accepts an Audio file via an HTTP Post. The API has support for Transfer-Encoding: chunked request header so that the file can be uploaded in pieces as it is being created from a recorder running on the client. This way the…
15
votes
4 answers

How can I set Transfer-Encoding to chunked, explicitly or implicitly, in an ASP.NET response?

Can I simply set the Transfer-Encoding header? Will calling Response.Flush() at some point cause this to occur implicitly? EDIT No, I Cannot call Response.Headers.Add("Transfer-Encoding","anything"); That throws. any other…
Cheeso
  • 189,189
  • 101
  • 473
  • 713
14
votes
3 answers

Serving HTTP/1.0 responses with Node.JS (unknown content length, chunked transfer encoding)

The Problem I am serving a resource of unknown length via Node.JS. Because of this, the Content-Length header cannot be set. For HTTP 1.1, it is required that chunked encoding is used for resources of this nature. Node.JS knows this and sends my…
Brad
  • 159,648
  • 54
  • 349
  • 530
13
votes
3 answers

How do I disable 'Transfer-Encoding: chunked' encoding in Varnish?

Using Varnish 4, I have a set of backends that're responding with a valid Content-Length header and no Transfer-Encoding header. On the first hit from a client, rather than responding to the client with those headers, Varnish is dropping the…
11
votes
2 answers

What is the maximum chunk size in HTTP response with Transfer-Encoding chunked?

The w3.org (RFC2616) seems not to define a maximum size for chunks. But without a maximum chunk-size there is no space for the chunk-extension. There must be a maximum chunk-size, else I can't ignore the chunk-extension as I'm advised to do if it…
schwer
  • 279
  • 1
  • 2
  • 10
10
votes
1 answer

Disable "Transfer-Encoding:chunked" in Apache httpd

We are implementing some rest APIs using Apache httpd. We have one API which gives 9k buffer in response. Whenever our response goes over 8k then Apache will append "Transfer-Encoding:chunked" in response header and rest of response header will be…
Rahul R Dhobi
  • 5,668
  • 1
  • 29
  • 38
8
votes
1 answer

Tomcat 7 , Spring rest template application producing err_invalid_chunked_encoding in browser

I have a Tomcat 7 , Spring 4.2 'RestController' implementation of REST API which seems to produce 'ERR_INVALID_CHUNKED_ENCODING' for few API calls on returning a JSON response. It is the same code that creates a ResponseEntity. But for few API calls…
Krithika Vittal
  • 1,477
  • 2
  • 16
  • 32
7
votes
1 answer

Streaming Http responses with NodeJS

I am experimenting with various responses from a simple NodeJS HTTP server. The effect I am trying to achieve is faster visual rendering of a web page. Since the response is streamed to the browser with transfer-encoding: chunked (right?) I was…
Daniel
  • 135
  • 1
  • 1
  • 8
7
votes
1 answer

POST with transfer-enconding: chunked fails in IIS 8.5 web API

I have ASP.NET Web API running on IIS 8.5, and my POST method takes in a body of json document. Now a client app is using apache httpclient, which apparently automatically adds the Transfer-Encoding: chunked header into the request. My API method…
Tuomas
  • 71
  • 1
  • 6
6
votes
6 answers

HTTP Transfer-Encoding and requests

the HTTP specification states that the Transfer-Encoding header is allowed for requests - but what error code should a server respond if it doesn't understand that given Transfer-Encoding. As far as I know the HTTP standard doesn't cover this…
Fionn
  • 10,975
  • 11
  • 54
  • 84
6
votes
2 answers

How do I use the winhttp api with "transfer-encoding: chunked"

I'm trying to send some data to a web service which requires the "Transfer-encoding: chunked" header. It works fine with a normal POST request. But as soon as I add the header, I always get: The content could not be delivered due to the following…
sph
  • 71
  • 7
6
votes
1 answer

Tomcat gzip while chunked issue

I'm expiriencing some problem with one of my data source services. As it says in HTTP response headers it's running on Apache-Coyote/1.1. Server gives responses with Transfer-Encoding: chunked, here sample response: HTTP/1.1 200 OK Server:…
hoodoos
  • 340
  • 1
  • 4
  • 12
5
votes
1 answer

How do I disable chunked transfer-encoding when using compressed dynamic content?

I want to disable chunked transfer encoding on my web server, in order to avoid this bug: http://support.microsoft.com/kb/871205 . Unfortunately, I need to support IE6 on Win2k, so they cannot install the patch. I found instructions to set…
1
2 3
9 10