[Mono-list] http headers

Peter Hagen peter at wingsofdeath.nu
Thu Sep 14 05:55:51 EDT 2006


Hi

I seemed to figured out where one of my problems lies. I create a
download.aspx which should give me a file from the webserver. If I test
it local it works perfectly, but running from apache with mod_mono it
always goes wrong. Today I figured out, that apache+mod_mono doesn't
give me my headers I need to download. If I run the application in xsp
on the same server, it works like a breeze. Is this a bug? or can I do
something to activate it, or get it working?

Mono 1.1.13.2
xsp 1.1.13.7

The code is something like:

Response.Clear();
Response.ClearHeaders();
Response.ContentType = "application/octet-stream";
Response.AddHeader("Content-Disposition", "attachment; filename=\"" +
Path.GetFileName(file) + "\"");

Response.Cache.SetExpires(DateTime.Now.AddSeconds(-60));
Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache); 
// Response.Flush();
Response.WriteFile(file);
Response.End();


I do want to upgrade this mono version, but somehow I can seem to get it
to compile (redhat 7.2 if i remember correctly)

greetings

Peter



More information about the Mono-list mailing list