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
3
votes
1 answer
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 (addressFile) which is contained in stream. The API…

MattEvansDev
- 615
- 7
- 15
3
votes
1 answer
Bad chunk-size in HTTP response: Net/HTTP/Methods.pm line 542
Questions that pose a similar problem:
Issues with LWP when using HTTP/1.1: bad chunk-size, truncated responses.
I am using the Perl module WWW::Mechanize to scrape web sites. As far as I understand, WWW::Mechanize uses the Net::HTTP module to…

Athithyaa
- 33
- 1
- 6
3
votes
2 answers
Uncompressed size of a webpage using chunked transfer encoding and gzip compression
I'm writing an application that calculates the savings we got after using gzip on a web page. When the user inputs the URL of the web page that used gzip, the application should spit out the savings in size due to gzip.
How should I approach this…

Binu Mathew
- 55
- 1
- 10
3
votes
1 answer
Uploading a 0 bytes file to owncloud with python requests hangs
I am trying to upload a 0 bytes file with requests to owncloud. I'd like to use a file-like object for that. Normally I'd do it like this:
file_obj = io.BytesIO(b'')
response = requests.put('http://localhost/remote.php/webdav',
…

uphill
- 399
- 1
- 13
3
votes
1 answer
REST Assured - How do I instigate "Transfer-Encoding: chunked" - I currently get apache error "Transfer-encoding header already present"
I'm pretty new to Java and REST/REST assured.
I'm trying to create a POST Request with "Transfer-Encoding: chunked" set (via a Header) but I get the exception “org.apache.http.ProtocolException: Transfer-encoding header already present”.
The code…

DebbieB
- 31
- 3
3
votes
1 answer
Is it a good idea to use Transfer-Encoding: chunked on static files?
I've got your usual static site, where the server grabs .html files and sends them.
I understand the importance of Transfer-Encoding: chunked for dynamic server pages, since that's what it was designed for. The speedup can be pretty incredible. But…

Tigt
- 1,330
- 2
- 19
- 40
3
votes
0 answers
Should I add HTTP "Transfer-Encoding" in Connection header?
HTTP protocol states two things:
Transfer-Encoding is a hop-by-hop header and it must be removed by proxies.
Other hop-by-hop headers should be added in Connection header to tell proxies to remove them.
But, if everybody knows that…

Marus Gradinaru
- 2,824
- 1
- 26
- 55
2
votes
1 answer
How to generate chunked request in Fiddler?
I need to test a server and to send a chunked request from Fiddler. I need to send something very simple, for example 'a' character as a content.
There is a Request Builder tab where I can set Transfer-Encoding: chunked header, but how do I specify…

IT Hit WebDAV
- 5,652
- 12
- 61
- 98
2
votes
1 answer
.NET WCF Can't Decode "Chunked" response
I am calling an axis web service from WCF. The request works just fine but I get back null values. Using Fiddler I was able to determine that the response is coming base as Transfer-Encoding: chunked. This means that there are control characters…

Norge
- 97
- 2
- 10
2
votes
1 answer
Decoding HTTP chunked + gzipped content
How would one decode a server response that is
1) transfer-encode: chunked
2) content-type: gzip
I need to do this manually and can't just use curl to send the request. I need to decode from the raw $string.
Here's a function that is supposed to…
user429620
2
votes
0 answers
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.APPLICATION_JSON_VALUE, produces =…

Raashith
- 155
- 3
- 16
2
votes
1 answer
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 administrator of that application sent me their request so I…

kopz
- 738
- 11
- 20
2
votes
2 answers
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 large amounts of data to the client (in the…

Publius
- 53
- 1
- 5
2
votes
0 answers
content-length header in response not present despite commenting transfer-encoding in axis2.xml
I have an axis2 service running on TOMCAT 6.0.18 with axis2 1.3 version.
I disabled chunking by commenting the transfer-encoding element and changed the HTTP to 1.0
as shown below:

Ravi Kandarpa
- 21
- 1
2
votes
1 answer
Http server in c# supporting chunked Transfer-Encoding
I am looking for a way to create a HttpServer in C# that supports the chunked Transfer-Encoding for multipart-form posts. Reason is that I need to transfer large files (2-10GB) and the client application has to use the chunked transfer-encoding -…

user8609610
- 41
- 1
- 3