Questions tagged [transfer-encoding]

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.

142 questions
5
votes
1 answer

urllib2 python (Transfer-Encoding: chunked)

I used the following python code to download the html page: response = urllib2.urlopen(current_URL) msg = response.read() print msg For a page such as this one, it opens the url without error but then prints only part of the html-page! In the…
user2115924
  • 51
  • 1
  • 2
5
votes
2 answers

Transfer-Encoding: chunked in Windows Phone

I have a server response with Transfer-Encoding: chunked HTTP/1.1 200 OK Server: nginx/1.2.1 Date: Mon, 18 Feb 2013 08:22:49 GMT Content-Type: application/json; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Vary:…
kza
  • 1,590
  • 13
  • 32
4
votes
1 answer

Reading "chunked" POST data in PHP

I'm trying to read the POST data from a request with "Transfer-Encoding: chunked" while it's being sent but can't get the script to fire until after all of the data has been received, is it possible to get PHP to be able to react to a chunked…
nortron
  • 3,873
  • 1
  • 24
  • 27
4
votes
1 answer

Chunked Transfer Encoding problem with Apache Abdera

I'm using Apache Abdera to POST atom multipart data to my server, and am having some odd problems that I can't pin down. It looks like an issue with chunked transfer encoding, but I'm insufficiently experienced to be certain. The problem manifests…
Richard J
  • 6,883
  • 4
  • 22
  • 27
4
votes
1 answer

How to enable transfer-encoding:chunked in Java on AppEngine

I have done a number of google searches on this topic, but haven't been able to find anything (other than confirmation that AppEngine ignores calls to 'resp.setHeader("transfer-encoding", xxxx)'. My issue is that I have a server process that takes a…
4
votes
0 answers

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 = ''; } if (acceptEncoding.match(/\bdeflate\b/)) { …
4
votes
1 answer

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 to configure nginx and uwsgi to achieve desired…
sopticek
  • 41
  • 1
  • 4
4
votes
2 answers

What is optimal response size for chunked transfer in ASP.NET?

I am creating a reverse proxy and I am trying to find the optimal buffer for a response size for a chunked transfer-encoding. Currently I have it set at 4 kb. Is this number OK, or is there a better size that I should be using. I would like this…
Nick Berardi
  • 54,393
  • 15
  • 113
  • 135
4
votes
1 answer

Set maximum chunk size on chunked http response

I have created a web site (c# on Azure) which provides responses to a microcontroller (using a Texas Instruments CC3100 wifi chip). The microcontroller has limited memory, and I would like to limit its buffer size to under 1000 bytes. I can use…
ef9999
  • 41
  • 2
  • 3
4
votes
3 answers

How to download chunked data with Pythons urllib2

I'm trying to download a large file from a server with Python 2: req = urllib2.Request("https://myserver/mylargefile.gz") rsp = urllib2.urlopen(req) data = rsp.read() The server sends data with "Transfer-Encoding: chunked" and I'm only getting some…
user923543
4
votes
1 answer

How to remove Transfer-Encoding: chunked in the HTTP response

I have made a HTTP endpoint (REST in Java, Spring Framework, Apache Tomcat), in which the HTTP response has the header "Transfer-Encoding: chunked". I don't know if it is created by the servlet or the server. I don't want that the endpoint responses…
Carlos AG
  • 1,078
  • 1
  • 12
  • 16
4
votes
2 answers

C parsing HTTP Chunked transfer encoding response

I am developing a client that needs to parse Chunked-type HTTP transfers. I've beat my head against the wall trying to figure out the error with the following, and would appreciate it if someone might be able to catch my error a bit quicker. To sum…
3
votes
0 answers

Which Content-Transfer-Encoding when sending emails via C# or there are not any difference?

I am sending emails via C# the way below MailMessage mail = new MailMessage(); mail.To.Add(txtTestEmail.Text); mail.From = new MailAddress("noreply@monstermmorpg.com", "MonsterMMORPG"); mail.Subject = "Test email from MonsterMMORPG"; mail.Body =…
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
3
votes
1 answer

why is chunked transfer encoding not being respected by Firefox?

I'm streaming a large document through a Spring MVC controller running on Apache Tomcat/6.0.18 because its large, and will (eventually) be dynamically generated, I decided to use chunked Transfer-Encoding. import java.io.FileInputStream; import…
nont
  • 9,322
  • 7
  • 62
  • 82
3
votes
1 answer

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 general-headers One could implement a web browser…
dminuoso
  • 963
  • 1
  • 7
  • 10
1
2
3
9 10