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

subscription.sapi subscription.sapi at apsystems.it
Tue Jun 27 12:41:48 EDT 2006


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

 

Response.ClearContent();

Response.ClearHeaders();

Response.Clear();

Response.ContentType=ContentType;

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

Response.BinaryWrite(FileBytes);

Response.Flush();

Response.End();

 

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

During porting operations we have noticed that doesn't work on
Apache+Mono.

 

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
stream).

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.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060627/0db1f35a/attachment.html 


More information about the Mono-devel-list mailing list