144 questions
0
votes
0
answers
58
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
101
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 ...
0
votes
0
answers
112
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}, ...
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 ...
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 ...
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
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....
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 ...
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
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
[...]...
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 = "...
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
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
2
answers
400
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):
...
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, ...
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....
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 (...
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 ...
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 ...
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 ...
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 ...
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
785
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 ...
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 ...
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 ...