transfer-encoding

Problem turning HTTP Chunking off in AXIS2

Hi I have a client sending me requests without HTTP chunking (they use content-length). When my server responds, chunking is enabled, and the client can't handle this - even though they should be able to as they are using HTTP 1.1..... I have tried to disable chunking by removing the entry below from the axis2 config file (axis2.x...

What is optimal response size for chuncked 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 chuncked 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 backed up with some tests if at all possible. I would also accept a property setting som...

HTTP Transfer-Encoding and requests

Hi, the HTTP specification states that the Transfer-Encoding header is allowed for requests - but what error code should a server respond if it doesn't understand that given Transfer-Encoding. As far as I know the HTTP standard doesn't cover this possibility, but maybe I have just overlooked it. ...

.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 in in the response BEFORE the xml. WCF does NOT throw an error. It just moves on and the...

How do I disable chunked transfer-encoding when using compressed dynamic content?

I want to disable chunked transfer encoding on my web server, in order to avoid this bug: http://support.microsoft.com/kb/871205 . Unfortunately, I need to support IE6 on Win2k, so they cannot install the patch. I found instructions to set AspEnableChunkedEncoding to FALSE, but this does not seem to solve my problem. I believe this is b...

What is the encoding of an .eml file from IIS's SMTP server?

I need to write a program that read the .eml files from IIS's mail drop box, but I can't find a definitive source that tells me the encoding of the .eml files. Is there a specification somewhere that tells me the encoding of the files, or do I just have to guess/assume one? ...

large data transfer between mobile app and server

what's the server setup used for data communication between a mobile app(eg. android) and server, would apache http server with php be sufficient? assuming you need to transfer 1gb of binary or text data at once per day, or spread them over small chunks and transfer at different times of the day. what about tomcat + java servlet? all su...

Chunked responses in libevent2

Hi I am trying to do a chunked response (of large files) in libevent this way:: evhttp_send_reply_start(request, HTTP_OK, "OK"); int fd = open("filename", O_RDONLY); size_t fileSize = <get_file_size>; struct evbuffer *databuff = NULL; for (off_t offset = 0;offset < fileSize;) { databuff = evbuffer_new(); size_t bytesLeft = f...

Apache deflate with chucked encoding

I'm expiriencing some problem with one of my data source services. As it says in HTTP response headers it's running on Apache-Coyote/1.1. Server gives responses with Transfer-Encoding: chunked, here sample response: HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=utf-8 Transfer-Encoding: chunked Date: Tue, 30 Ma...

Tomcat gzip while chunked issue

I'm expiriencing some problem with one of my data source services. As it says in HTTP response headers it's running on Apache-Coyote/1.1. Server gives responses with Transfer-Encoding: chunked, here sample response: HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=utf-8 Transfer-Encoding: chunked Content-Encoding...

How can I set Transfer-Encoding to chunked, explicitly or explicitly, in an ASP.NET response?

Can I simply set the Transfer-Encoding header? Will calling Response.Flush() at some point cause this to occur implicitly? EDIT No, I Cannot call Response.Headers.Add("Transfer-Encoding","anything"); That throws. any other input? Related: Enable Chunked Transfer Encoding in ASP.NET ...

Can SVG render partially if gzipped and chunk-transferred?

Hi - I have some large, dynamically generated SVGs that are being served over a relatively slow internet connection. I'm trying to optimize them to be viewable as fast as possible. If I set the server to Content-Encoding: gzip and Transfer-Encoding: chunked, will any SVG viewers take advantage of that and render it partially, as it is...

Safely insert line breaks into HTML

I have an application allows a user to copy paste html into a form. This html gets sent as an email, and the email server will not allow more than 1000 characters per line. So, I'd like to insert line breaks (\r\n) into the html after the user has hit submit. How can I do this without changing the content? My idea is this: html.replace...