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.
Questions tagged [transfer-encoding]
142 questions
2
votes
2 answers
how to send multipart/alternative email with PHP correctly
I'm trying to use the built-in PHP mail function to send multipart messages that contain a html and a plain text version of my message. I've been playing around with different encoding types but, I keep running into problems. Originally I set…

Austin
- 1,619
- 7
- 25
- 51
2
votes
2 answers
(spring-boot, cxf, tomcat) Content-Length vs Transfer-Encoding: chunked?
I'm trying to fix an issue re. http response-header: Transfer-Encoding: chunked
We have a CXF-SOAP webservice in spring-boot + embedded-tomcat.
The SOAP-responses get a Content-Length header, and no Transfer-Encoding ....
which is normal, I…

Rop
- 3,359
- 3
- 38
- 59
2
votes
2 answers
How to disable chunked encoding for JSON responses in Laravel?
I'm returning an array from a controller method in Laravel. Laravel interprets this to mean I want to send JSON, which is great, but it doesn't set the Content-Length and instead uses Transfer-Encoding: chunked.
My responses are tiny, so I don't…

mpen
- 272,448
- 266
- 850
- 1,236
2
votes
5 answers
Safely insert line breaks into HTML
I have an application allows a user to copy paste html into a form. This html gets sent as an email, and the email server will not allow more than 1000 characters per line. So, I'd like to insert line breaks (\r\n) into the html after the user has…

Mike Blandford
- 3,952
- 4
- 29
- 32
2
votes
0 answers
Node JavaScript disable Transfer-Encoding Chunked
I have an app which sends HTTP responses as chunked.
The chunking itself is done before the HTTP response and is sent as payload to the HTTP server response functions.
When node sees that I have the header Transfer-Encoding: chunked it will take the…

Sorin B
- 21
- 2
2
votes
0 answers
Jersey response: don't set Content-Length header if Transfer-Encoding is already set
I have a Jersey-Application that proxies a request to an internal application, which should be out of direct access.
@GET
@Path("/path")
public static Response get(
@Context UriInfo uriinfo,
@Context HttpHeaders httpHeaders,
…

ulrich
- 1,431
- 3
- 17
- 46
2
votes
1 answer
Is there a way to handle chunks in chunked request once we receive them?
I hope I'll explain myself correctly.
I have a C# web service with a post method get_file(), from my client side, I make a POST request to that method in my server, with transfer-encoding chunked, and send the file in chunks.
The method starts once…

DanielY
- 1,141
- 30
- 58
2
votes
0 answers
Is it possible to set Transfer-Encoding: chunked header in request?
I need to send a request with "Transfer-Encoding: chunked" header set. When I try to call xhr.setRequestHeader("transfer-encoding", "chunked"), Chrome throws the following error in console: "Refused to set unsafe header "content-length".
There is a…

ViktorR
- 21
- 2
2
votes
0 answers
Transfer-encoding in apache
I have a couple of questions regarding transfer encoding.
-> Our backend scripts currently are taking ~ 500 ms, the HTML is generated in various parts/sections. So now if send data via chunks my page should by more responsive, is that reasoning…

nit
- 25
- 6
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
1 answer
preg_replace on HTML page gives net ::ERR_INVALID_CHUNKED_ENCODING
I have a simple curl call that retrieves HTML page from the server, then preg_replace() that inserts something in the page and then the result of that is echoed back to the browser.
What I noticed is that if HTTP server that curl is trying to get…

Zed
- 5,683
- 11
- 49
- 81
2
votes
1 answer
PHP ob_gzhandler, setting Content-Length disables gzipped output
I read some articles about setting the content-length of a file that will be served. It has some benefits comparing to chunked downloads. The server serve chunks (don't know what the size of a chunk is anyway) when the content-length is unknown.
In…

Codebeat
- 6,501
- 6
- 57
- 99
2
votes
2 answers
“Transfer-Encoding: chunked” header in PHP. What is "padding" for?
As suggested in a reply to a previous question (PHP External Oauth : how to displaying a waiting message while waiting for callback (not using AJAX) ), I am using transfer encoding: chunked to display a waiting message while some tasks are…

Jean-Marc Dormoy
- 129
- 1
- 2
- 9
2
votes
1 answer
On JBoss 4.2.3.GA - JSP response header transfer-encoding:chunked makes it so I can't cache jsp content on load balancer
On JBoss 4.2.3.GA, we have a JSP response that is being generated with transfer-encoding:chunked. This is preventing our Netscaler load balancer from allowing the HTML generated by the JSP from being cached because it thinks it is variable content.…

Nicholas DiPiazza
- 10,029
- 11
- 83
- 152
1
vote
0 answers
Parse Error: Invalid character in chunk size when using ResponseWrapper
I'm getting below errors in different conditions when hitting GET request.
a) Parse Error: Invalid character in chunk size when using postman.
b) Illegal or missing hexadecimal sequence in chunked-encoding when using curl.
So, the application uses…

Gourav Kumar
- 205
- 1
- 7