[Mono-dev] Transfer-Encoding: chunked + Connection: close

Kornél Pál kornelpal at gmail.com
Tue Jun 27 13:17:06 EDT 2006


The attached example works fine for me with mod_mono and Apache. Note that 
doing this you don't need chunked encoding because you know the actual 
content length.


----- Original Message ----- 
From: "subscription.sapi" <subscription.sapi at apsystems.it>
To: <mono-devel-list at lists.ximian.com>
Sent: Tuesday, June 27, 2006 6:41 PM
Subject: [Mono-dev] Transfer-Encoding: chunked + Connection: close

We have problem to retrieve an attachment from a Web Page. We use the
following code:





Response.AppendHeader("content-disposition", "filename=" +




This code works well on IIS+.NET, for Internet Explorer and Firefox.

During porting operations we have noticed that doesn't work on

More precisely: work fine for firefox (it downloads the file and ask to
save the file), but give an error on Internet Explorer (it downloads the
file, but probably does not complete correctly the operation).

We noticed in the http response header from server, that in the
Apache+Mono version, there is "Connection: close" (not present in
IIS-.NET version). This is a "Transfer-Encoding: chunked", probably this
creates the problem. For same strange reason, this is not a problem for
Firefox, but Internet Explorer can't handle correctly the file (web

I've read the patch of Gonzalo:

Author: gonzalo
Date: 2005-06-26 01:51:18 -0400 (Sun, 26 Jun 2005)
New Revision: 46512

But this doesn't seems to work. I Like also to know if this patch is
already in the compilation monocharge-20060627.tar.gz
<http://mono.ximian.com/daily/monocharge-20060627.tar.gz>  at
http://mono.ximian.com/daily/, we like to create a compilation
environment in the near future,but forn now we depend on the compiled
version only.

Thank you.


> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binarydata.aspx
Type: application/xml
Size: 543 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060627/97e84526/attachment.rdf 

More information about the Mono-devel-list mailing list