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
1
vote
0 answers
Python CGI: need to printout often to prevent server from dying
Possible Duplicate:
python print function in real time
I am developing a python cgi web application, which retrieves large information(millions of lines) from the database. For that i will be running a loop (print statements are in the loop).
How…

Sushil
- 53
- 5
1
vote
0 answers
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 call in my browser TTFB is around 300 ms but when…

nole
- 563
- 1
- 5
- 16
1
vote
0 answers
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 set the SendChunked to true before I set the…

Domitius
- 475
- 6
- 17
1
vote
1 answer
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 = "HTTP/1.0 200 OK\r\nServer: testServer\r\n" +
…

Arunan Sugunakumar
- 3,311
- 3
- 12
- 20
1
vote
0 answers
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 request to a url that has…

Ali Tor
- 2,772
- 2
- 27
- 58
1
vote
1 answer
Possible to send HTTP 1.1 Footers from PHP using Transfer-Encoding: chunked?
Having tried and failed to get a manual implementation of chunked Transfer-Encoding with gzipped Content-Encoding working in PHP, I'm now back to using mod_deflate in Apache, which does a nice job.
Only problem is, there are some footers I'd like to…

Don MacAskill
- 868
- 1
- 7
- 14
1
vote
0 answers
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 'Content-Length' in headers.
Then I tried…

quyleanh
- 63
- 5
1
vote
2 answers
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):
html_string = ''
try:
response =…

ali frd
- 23
- 7
1
vote
1 answer
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, text/javascript, */*; q=0.01
Content-Type:…

Junior
- 507
- 5
- 19
1
vote
0 answers
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 as a parity byte or something else...
But isn't it…

Harshank Bansal
- 2,798
- 2
- 7
- 22
1
vote
0 answers
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 this settings then I get error 411.
HAProxy works…

sfeher
- 51
- 4
1
vote
1 answer
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 content-length in the http response header , since…

sanjay kumar
- 25
- 5
1
vote
1 answer
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 use gzip compression so I have Transfer-Encoding:…

maxiplay
- 427
- 1
- 5
- 13
1
vote
1 answer
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 they are not stored in my service in a compressed…

user9476940
- 11
- 1
1
vote
1 answer
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 at least not close the connection and receive the…

thinkski
- 1,306
- 1
- 15
- 25