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
1
vote
1 answer

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.AF_INET, socket.SOCK_STREAM) print ("socket…
Ryan
  • 21
  • 1
1
vote
1 answer

Convert frequency Domain data of transducer to time Domain Transfer Function

I have a few .mat files that denote the characteristics of a transducer (transmitter); I want to use the data for my Matlab code, in order to observe the response it will have on my transmit signal. The first file contains Magnitude of the…
Sal
  • 35
  • 8
1
vote
1 answer

Varnish return(fetch/deliver) vs chunked encoding

I'm trying to get varnish cache response to be chunked... (that's possible, right?) I have the following scenario: 1 - cache is clean, good to go (service varnish restart) 2 - access the www.mywebsite.com/page for the first time (no content-length…
dNurb
  • 385
  • 2
  • 16
1
vote
1 answer

Is it possible to use chunked transfer-encoding on a .NET MVC page that uses a master page?

I have a working example of using chunked transfer-encoding for just .NET, but can't get it to work for an MVC page. I can't find any implicit support for doing chunked transfer-encoding on an MVC page. Since I can't find any support for doing a…
DMR
  • 11
  • 3
1
vote
0 answers

Streaming responses with chunked transfer encoding

We have a small proxy server written in .net. A simplified version of the core proxy functionality: builder.Run(async ctx => { using (HttpClient client = new HttpClient()) { await…
richzilla
  • 40,440
  • 14
  • 56
  • 86
1
vote
0 answers

Spring MVC proxy failing for Response with Content-Length

I have wrote a proxy in my spring mvc service, which by passes any request that client making through a specific format to respective services. This is working fine, with some problems. Here is my code. SimpleClientHttpRequestFactory…
Ysak
  • 2,601
  • 6
  • 29
  • 53
1
vote
1 answer

Empty request body when Transfer-Encoding is Chunked - NancyFX

I have a very simple NancyFX module which I simply want to echo the results of an API call back to the sender. I am using a facade which converts incoming XML to JSON before handing it off to the Nancy endpoint. This facade changes the content to…
darth_phoenixx
  • 932
  • 12
  • 23
1
vote
1 answer

Why Transfer-Encoding:Chunked sent instead of Content-Encoding:gzip for some of clients?

I confused. I have two laptops that connect to internet via same modem device. For web servers that enabled gzip in them for example microsoft.com, One of my Systems(64-bit) get response header with Transfer-Encoding:chunked. The other get response…
Mohammad Eslami
  • 536
  • 1
  • 6
  • 17
1
vote
0 answers

Header Content-Length not getting in rest web service using php

I have created web service for ios application using rest. I want Content-Length header field. When I tested on "Advanced Rest Client" chrome's extension it work's fine, but ios application not getting Content-Length. Instead of Content-Length…
Rahul
  • 223
  • 1
  • 2
  • 10
1
vote
1 answer

NSURLConnection response's expectedContentLength -1

* Note: There are several links on this topic but it didn't work for me, So I have to post the new one here. * Basically I'm trying to show the UIProgressView to show the data being fetched from the web service. Now problem is that I'm getting…
Mahesh
  • 526
  • 1
  • 6
  • 21
1
vote
1 answer

HTTP - How the client knows what transfer codings are accepted by the server?

I know that the server can send the data to the client only with the transfer codings sfecified by the "TE" header of the request (or only chunked if no "TE" header is pressent and the client is HTTP/1.1). But, how the client knows what transfer…
Marus Gradinaru
  • 2,824
  • 1
  • 26
  • 55
1
vote
2 answers

Content-Encoding: gzip + Transfer-Encoding: chunked with gzip/zlib gives incorrect header check

How do you manage chunked data with gzip encoding? I have a server which sends data in the following manner: HTTP/1.1 200 OK\r\n ... Transfer-Encoding: chunked\r\n Content-Encoding:…
Torxed
  • 22,866
  • 14
  • 82
  • 131
1
vote
1 answer

Chunked transfer-encoding in django rest framework (nginx+gunicorn)

I've built an API using Django Rest Framework to serve ical feed from my django models. The feed content is validated and works in all calendar applications I've tested except iCal on iOS. iCal on iOs will accept the content if copy/pasted but won't…
1
vote
1 answer

Add trailer in HttpWebRequest using c#

I am trying to add trailer in HttpWebRequest header, but it is not appending that trailer after end of file data. wreq.ContentType = "application/octet-stream"; wreq.AllowWriteStreamBuffering = false; wreq.SendChunked =…
1
vote
2 answers

Netty - access content of chunked HTTP request (LittleProxy)

I'm intercepting an HTTP request with LittleProxy which uses Netty. However, now I want to intercept a webservice request that apparently uses chunked transfer encoding. The HTTP header looks like this Content-Type -> text/xml; charset=UTF-8 Host ->…
Thomas
  • 2,070
  • 3
  • 16
  • 21