[Mono-dev] ASP.Net HttpResponse.SuppressContent

Arnhoffer Károly karnhoffer at ecron.hu
Wed Jan 25 03:34:53 EST 2006


> Did you reproduce the problem with the same test that you attached to 
> the bug report? I used your test, mono/xsp from svn and firefox. The 
> 'view source' for the page was empty. I'll check later if any header 
> is sent and update the bug.

Right, with Firefox the 'view source' really gives an empty source. I tried with MSIE before. 

When I test with IIS/.Net after hitting the button the browser is waiting for the response: waitcursor, "Waiting for localhost" in the statusbar, and the most important the page remains in the browser.

Testing with Apache/XSP/Mono an empty page loads in with Firefox or an empty page with that header loads in with MSIE.

I captured the traffic with ethereal and I found that you are right both IIS/.Net and Apache/XSP/Mono sends a response when hitting the button.

IIS/.Net's response:

    HTTP/1.1 200 OK\r\n
    Server: Microsoft-IIS/5.1\r\n
    Date: Wed, 25 Jan 2006 08:14:27 GMT\r\n
    X-Powered-By: ASP.NET\r\n
    X-AspNet-Version: 1.1.4322\r\n
    Cache-Control: private\r\n
    Content-Type: text/html; charset=iso-8859-2\r\n
    Content-Length: 1293\r\n
    \r\n

Apache/XSP/Mono's response:

    HTTP/1.1 200 OK\r\n
    Date: Wed, 25 Jan 2006 08:01:08 GMT\r\n
    Server: Apache/2.0.50 (Linux/SUSE)\r\n
    Content-Length: 0\r\n
    Cache-Control: private\r\n
    Keep-Alive: timeout=15, max=99\r\n
    Connection: Keep-Alive\r\n
    Content-Type: text/html; charset=iso-8859-2\r\n
    \r\n

And there is an interesting difference: the Content-Length field! IIS/.Net does the following: sends the HTTP headers as it was a normal response to a GET or POST request but sends no content and I think the missing content is what the browser is waiting for. :-)

I attached the captured traffic as text files. Please have a look at Frame 584 and Frame 995 in net.txt and recognize that two responses are the same except second one has no content. Then have a look at Frame 1331 and Frame 1603 in mono.txt and recognize that in Frame 1603 Content-Length is 0 and of course there is no content.

Now the question is what does this Content-Length stuff? IIS or .Net?

-----Original Message-----
From: mono-devel-list-bounces at lists.ximian.com [mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of Gonzalo Paniagua Javier
Sent: Tuesday, January 24, 2006 10:31 PM
To: mono-devel-list at lists.ximian.com
Subject: RE: [Mono-dev] ASP.Net HttpResponse.SuppressContent


On Tue, 2006-01-24 at 11:30 -0500, Gonzalo Paniagua Javier wrote:
> On Tue, 2006-01-24 at 16:00 +0100, Arnhoffer Károly wrote: [...]
> > So what should the problem be here? Why does my server write 
> > headers? And why does your not? There is a setting in Web.config:
> > 
> >     <globalization 
> > 		requestEncoding="iso-8859-2" 
> > 		responseEncoding="iso-8859-2" 
> > 	/>
> > 
> > When I comment out the whole globalization setting the header is 
> > sent again.
> > 
> > Any ideas what I should do now?
> 
> Did you reproduce the problem with the same test that you attached to 
> the bug report? I used your test, mono/xsp from svn and firefox. The 
> 'view source' for the page was empty. I'll check later if any header 
> is sent and update the bug.

I tested this under MS and got the same results as with mono. The details are on the bug report.

-Gonzalo


_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: net.txt
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060125/4ea55817/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mono.txt
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060125/4ea55817/attachment-0001.txt 


More information about the Mono-devel-list mailing list