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
0
votes
0 answers
Tomcat returning content-length zero randomly
We are using PDF.js as PDF viewer and the following code is used as the endpoint for downloading PDF. The issue is sometimes, ~80% of the times, when a large PDF, say > 5 MB, is opened the PDF.js is showing error "Stream must have data". But when…

msmani
- 730
- 1
- 7
- 24
0
votes
0 answers
How to allow downloading huge file in a website only after authentication?
I have a website where users need to see a link to download a file (approximately 100 MB size) only after authenticating (userid/password) themselves in the website. Users should not be able to copy the link and use it later without…

yathirigan
- 5,619
- 22
- 66
- 104
0
votes
0 answers
Is there a way to request a server to not answer request with Transfer-Encoding: chunked on XMLHttpRequest?
Is there a way to request a server to not answer request with Transfer-Encoding: chunked on XMLHttpRequest?
Like passing a value in the header during the request?
In another SO question they said one can use HTTP 1.0, I don't know if this is…

user5507535
- 1,580
- 1
- 18
- 39
0
votes
1 answer
How to deal with transfer encoding in Python?
I am working on an analytic API for small ML project. I have created an endpoint, which uses Flask's stream_with_context function like in the example below:
def post():
# some logic
[...]
try:
res =…

mik0w
- 116
- 1
- 4
0
votes
0 answers
ASP.NET Core web application returns different response headers for every request
Response Transfer-Encoding header's value is not always present.
There is an ASP.NET Core(Razor) web app hosted on localhost. A small console application periodically(every 2-3 minutes) makes 45 HttpWebRequest to the web app for different…

Igor
- 266
- 1
- 3
- 13
0
votes
1 answer
How to count Transfer-Encoding: chunked chunk size
I'm not getting that in Transfer-Encoding: chunked, how the size is counted. can anyone explain this chunk size please? thank you.
POST / HTTP/1.1
Host: your-lab-id.web-security-academy.net
Content-length: 4
Transfer-Encoding: chunked
87
GET…

ivreznap
- 27
- 4
0
votes
1 answer
Transfer-encoding: chunked and MP3/Lame
I have a PHP webservice that returns an mp3 HTTP response. It works, but when I turn on Chrome's network throttling in DevTools, it returns only part of the response:
$stream_start1 = Psr7\stream_for(fopen('./sounds/ping.mp3', 'r'));
…

xdhmoore
- 8,935
- 11
- 47
- 90
0
votes
1 answer
Chunked transfer encoding doesn't work with any browsers except Firefox
I am working on my HTTP server and I applied chunked transfer encoding to my responses if the requested file is larger than 64K. It works fine with Firefox, I can even send large videos, but Chrome and Curl simply close the connection and don't…
0
votes
1 answer
Multipart posts upload images - setting transfer encoding, setting headers for each part
Using java, I need to do a multipart form request to Constant Contacts api to upload an image.
I need to create one part with XML per their specifications to describe the file and the second part needs to be the file itself. Not a problem. Problem…

Paul Resden
- 1
- 1
0
votes
0 answers
Is there an error in these HTTP request headers?
I'm trying to write a .NET web API that will receive HTTP requests from some devices and handle the data sent. I know the exact format of the data being sent and the ip/port that the data is sent to. The problem is that the API does not even seem to…

koklua
- 1
- 2
0
votes
1 answer
HTTP/1.1 request with body and without content-type
How to identify whether an http request has body or not. Referred this HTTP response headers valid with no Transfer-Encoding and Content-Length?. The request made from swagger ui has body and no content-type. But when checking the request it does…

Vithursa Mahendrarajah
- 1,194
- 2
- 15
- 28
0
votes
1 answer
[passenger + apache + ruby]HTTP PUT file failed with transfer-encoder:chunked header when passengerbufferupload is off
envirment:
passenger 5.0.0
apache:2.4.6
passengerbufferupload off
Error:
when put file with transfer-encoder:chunked by http request, can't get file content from apache.
apache error log:
App 22178 stderr: [ 2018-06-13 10:17:35.9345…

lijingjie
- 1
- 1
0
votes
1 answer
Retrofit client and response with Transfer-Encoding: chunked
I'm working on a Android sample app that get film list from http://www.omdbapi.com/.
The REST service is:
http://www.omdbapi.com/?s=star&apikey=d497e644
I'm using Retrofit to write the client.
public interface OmdbApi {
@Streaming
…

xcesco
- 4,690
- 4
- 34
- 65
0
votes
0 answers
c# sslstream sending data in chunks
I am trying to send data via sslstream from my c# webserver to a Browser.
For some reason "Transfer-Encoding: chunked" is not working.
Do you see any mistakes in my code below:
string header = HTTPServer.VERSION + " " + status + "\r\nContent-Type:…

Markus Tröstler
- 13
- 4
0
votes
1 answer
Transfer encoding: chunked causing problems for html response (using Modsecurity)
I have a Java-Servlet based web application using spring saml and Modsecurity.
For one of the GET requests (URL - /saml/login), the response is a HTML page returned as text/html(I can read the html file in browser network tools) along with…

adarsh hegde
- 1,353
- 2
- 21
- 43