[Mono-dev] Apache+Mono+Content-Length problem

Rafael Ferreira lists at ophion.org
Wed Feb 15 22:59:02 EST 2006

Apache must be overwriting the content headers that it is getting back
from mod_mono handler. You should try sending a
Response.FlushResponse(False) so the header information is actually sent
down the socket thus leaving Apache no chance to overwrite it. Now, I'm
saying this from pure speculation so no guarantees...

- raf

On Wed, 2006-02-15 at 13:53 +0100, Arnhoffer Károly wrote:
> Hi,
> This might be an Apache problem but someone may can help me. I would like to set the Content-Length header in a simple aspx page as follows:
> <%Response.AddHeader("content-length", "1000");%>
> a
> When using XSP instead of Apache it is good the Content-Length header in the captured traffic shows 1000 but in the Apache capture it is only 2. I tried the same thing with PHP and Apache:
> <?php 
> 	header("Content-Length: 1000", true);
> ?>
> a
> And the Content-Length header shows 1000 in the captured traffic again. But I can not get Apache with Mono to send the Content-Length header I want. What can I do?
> Thanks!
> Károly
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

More information about the Mono-devel-list mailing list