144 questions
0
votes
0
answers
65
views
NextJs + tRPC with Nginx as reverse proxy - duplicate header Transfer-Encoding: chunked
tRPC when used on client side with .useMutation() hook sends duplicate Transfer-Encoding: chunked header
Link to reproduction:
https://github.com/DownDev/trpc-bug
To reproduce
run using: docker ...
0
votes
0
answers
111
views
Nginx cuts off data and does not use Transfer-Encoding: chunked
I use nginx to proxy requests to the Server Sent Events API. Without nginx everything works fine, but when proxying through nginx the event body is cut off and further events do not arrive.
Nginx ...
0
votes
0
answers
103
views
Do browsers ever make chunked requests?
While studying NodeJS fetch failed (object2 is not iterable) when uploading file via POST request I learned that web servers do not generally support chunked HTTP/1.1 requests (they do return chunked ...
3
votes
0
answers
536
views
Can I read HTTP response with Transfer-Encoding=identity header in Golang?
Can I read HTTP response with Transfer-Encoding=identity header in Golang? Since at here shows that the official http library, net/http only support "chunked" in inbound Transfer-Encoding ...
0
votes
0
answers
113
views
Why does MS Graph calendar event deletion respond with Transfer-Encoding header, violating the HTTP spec?
My application has been in production for several months and everything worked fine. Howwever,
since February 24, 2023, whenever it deletes a calendar event via DELETE /me/calendars/{id}/events/{id}, ...
1
vote
0
answers
2k
views
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-...
0
votes
1
answer
386
views
Oracle ORDS - Can I control the Transfer-Encoding?
Please note I'm new to APIs and ORDS.
I've created a few APIs with Oracle Rest Data Services (ORDS) which returns 30,000 records at a time. I've noticed in the return header that Transfer-Encoding is ...
1
vote
0
answers
451
views
Header 'Transfer-Encoding' in Google Cloud Run
Has anyone tested or worked with the response header : 'Transfer-Encoding' to obtain it as a response header in a service deployed in Cloud Run ?
I can't find it in my API response headers, if I ...
0
votes
0
answers
1k
views
configure echo http server to control transfer encoding
I have a simple HTTP server written in golang using echo v4. When the response size is bigger than a certain size (threshold is 2.12K as I have tested), server sets the Transfer-Encoding header to ...
0
votes
0
answers
2k
views
Downloading large excel file in angular using xlsx library(net::ERR_INCOMPLETE_CHUNKED_ENCODING 200)
I am trying to download very large files using xlsx and file-saver in angular. I even tried streamsaver instead of file-saver and still get the same error. I get the results from my api just fine on ...
2
votes
0
answers
3k
views
Response.body(ReadableStream) getReader().read() is taking plenty of time for receiving first chunk as if it's waiting for entire response to complete
Currently, I am consuming a streaming API(transfer-encoding: 'chunked') and using the data in each chunk to render the UI as and when new chunk is received. When I check the timings tab under network ...
0
votes
1
answer
2k
views
Http Request Smuggling Vulnerability
We are blocking the requests with header containing Transfer-Encoding.
Only requests with Content Length are allowed.This wil impact to the application by any means, also how is determined to send ...
0
votes
1
answer
434
views
Why Transfer-Encoding request header does not interpret correctly?
Here is the PHP code for pg3.php:
<html>
<body>
<form method="post" action="pg3.php">
<h2><font color="red">::Welcome to Server1: 172.16.24....
0
votes
0
answers
494
views
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 ...
1
vote
0
answers
2k
views
Setting System.Net.HttpWebRequest TransferEncoding to chunked always results in a exception
I'm trying to understand whether I'm missing something or whether it's a limitation in HttpWebRequest setting the TransferEncoding value to chunked.
The below code works perfectly fine, as long as I ...
3
votes
1
answer
623
views
Will a web browser ever send a request with the Transfer-Encoding header?
Note
This question is about requests with the Transfer-Encoding header, not responses
Yes, requests can use the Transfer-Encoding header
Transfer-Encoding is a general-header
Requests may use ...
0
votes
0
answers
50
views
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 ...
0
votes
0
answers
144
views
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 ...
0
votes
1
answer
892
views
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
[...]...
0
votes
0
answers
253
views
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 ...
1
vote
1
answer
1k
views
How to send a closing chunk in Simple Java Socket Server?
I have a server A that uses Httpcore, HttpcoreNIO for HTTP communications. I have written a Simple Java Socket Server B to use as a backend.
public void run() {
String expectedResponse = "...
0
votes
1
answer
3k
views
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-...
1
vote
0
answers
78
views
How to increase range limit that can be requested partially when Transfer-Encoding = chunked?
I was trying to make a download manager that supports resume. My app uses the cookies and headers got from Chrome browser via an extension that I have. I faced a problem when I tried to send partially ...
0
votes
1
answer
489
views
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\...
0
votes
1
answer
1k
views
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 ...
1
vote
0
answers
1k
views
Headers has no 'Content-Length' with 'Transfer-Encoding': 'chunked'
When I use requests lib in Python, there are some cases in which I cannot get 'Content-Length' in headers with 'Transfer-Encoding': 'chunked'.
Firstly I tried requests.get(image_url), there is no '...
1
vote
2
answers
406
views
decode response of get request for persian websites
I'm writing function for send request and get response of websites and parse of content of it...
but when i send request to persian sites it cant decode content of it
def gather_links(page_url):
...
-4
votes
1
answer
2k
views
Go http client doesn't automatically dechunk body
I'm streaming http from Go and the server responds with "Transfer-Encoding: chunked" as expected. And I've been told that the http client in Go shall automatically dechunk the body from the http ...
1
vote
1
answer
8k
views
HTTP/1.1 - Transfer-Encoding: chunked - delay in the middle of response
I am using WINC1500 WiFi (with Arduino) to connect to a server (https) and to send some API requests.
In the header I send:
POST /api/myapi.php HTTP/1.1
Host: myserver.com
Accept: application/json, ...
0
votes
0
answers
667
views
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. ...
2
votes
0
answers
2k
views
Disable transfer-encoding in @RestController
I am having @RestController with endpoint like below (spring-boot version 1.5.9.RELEASE)
@RestController
public class Controller
{
@PostMapping(value = "profile", consumes = MediaType....
1
vote
0
answers
631
views
What is the use of Binary encoding when we have Character encoding?
I use to think that the use of binary encoding is because every device has its way to interpret bytes. Thus if a router sends a bit as some significant information other router might treat this byte ...
4
votes
1
answer
12k
views
How to handle Transfer-Encoding: chunked when downloading a file with .NET Core HttpClient.PostAsync
Situation
I am using HttpClient (System.Net.Http, Version=4.2.1.0) to POST an HTTP request with multipart form data to a web API. The form data includes a string parameter (benchmark) and a file (...
0
votes
1
answer
466
views
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 ...
2
votes
1
answer
3k
views
getting 400 bad request on SOAP requests (Transfer-encoding: chunked problem?)
I have a situation like this.A SOAP request is sent from an application to our server.
The request works fine when testing locally but always fails when testing live on the dev server.
The ...
1
vote
0
answers
443
views
JAX-WS web service call through haproxy throws error 411 length required
I had to relocate our local service to another ip address and added a HAproxy to handle the request.
My problem is that my client tries to send requests using Transfer-encoding: chunked. If I use ...
2
votes
2
answers
3k
views
Rails + Puma + Transfer-Encoding: chunked response - supported or not?
Configuration
Rails: 4.2.7.1
Puma: 3.8.2
--
Transfer-Encoding: chunked
I've been unable to make this work and unable to find a definitive answer: in the above configuration, I want to stream ...
0
votes
1
answer
133
views
[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 ...
1
vote
1
answer
2k
views
Oracle Service Bus: business service gives transfer-encoding as 'chunked' , even though 'Use chunked streaming mode' is disabled
Business service gives transfer-encoding as 'chunked' even though the 'use chunked streaming mode' is disabled in the http Transport configuration.
As part of one of our requirements we need the ...
0
votes
1
answer
2k
views
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.
...
8
votes
1
answer
2k
views
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 ...
0
votes
0
answers
374
views
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 = ...
4
votes
0
answers
2k
views
Why nodejs express zlib change header "content-encoding gzip" to "transfer-encoding chunked"
when I attempt compress a response with zlib nodejs express changes the headers.
Code:
var acceptEncoding = req.headers['accept-encoding'];
if (!acceptEncoding) { acceptEncoding = ''; }
...
1
vote
1
answer
2k
views
Impossible to use Google Cloud CDN cache with ingress controller, Transfer-Encoding header
I try to configure Google Cloud CDN to my container engine project.
Following the documentation It has either a Content-Length header or a Transfer-Encoding header in order to be cached.
My backend ...
1
vote
1
answer
793
views
Transfer encoding gzip in a PUT request
I am authoring a service with a REST API, that gives people the ability to upload certain kinds of documents. I would like these documents to be compressed during upload (for bandwidth reasons) but ...
4
votes
1
answer
6k
views
Content-Length returned in headers for chunked transfer encoding with nginx, uwsgi and flask
If I use chunked transfer encoding with nginx, uwsgi and flask I always get Content-Length in headers together with Transfer-Encoding: chunked. However, HTTP 1.1 prohibits this behaviour. I have tried ...
1
vote
1
answer
5k
views
Handling request with chunked transfer-encoding
Does golang's net/http package support requests with chunked transfer-encoding? Thus far I have been able to use the Hijacker interface (https://golang.org/src/net/http/server.go?s=6173:6875#L156) to ...
7
votes
1
answer
2k
views
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: ...
6
votes
2
answers
2k
views
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 ...
1
vote
1
answer
1k
views
502 Bad gateway when using Transfer encoding Python
I'm trying to build a barebones HTTP/1.1 client using just sockets. Whenever i try to use Transfer-encoding: chuncked, the code give me following status:502 Bad Gateway.
s = socket.socket(socket....