http://www.compsoc.man.ac.uk/~isoma/spare/205test is a simple form configured to POST to http://www.compsoc.man.ac.uk/~isoma/spare/cgi/205status http://www.compsoc.man.ac.uk/~isoma/spare/cgi/205status is a very basic CGI consisting of: #!/bin/bash echo Status: 205 Reset form echo Content-type: application/octet-stream echo ...on this server, this results in the following response headers: HTTP/1.1 205 Reset form Date: Wed, 16 Aug 2000 14:14:17 GMT Server: Apache/1.3.12 (Unix) PHP/4.0.0 Content-Location: 205status.cgi TCN: choice Vary: negotiate X-Powered-by: Steam Cache-Control: max-age=86400 Expires: Thu, 17 Aug 2000 14:14:17 GMT Connection: close Content-Type: application/octet-stream According to RFC 2616, an HTTP/1.1 conforming user agent should reset the content of the form to the freshly-loaded state on receipt of a 205 status code. Although there is no entity in the response from http://www.compsoc.man.ac.uk/~isoma/spare/cgi/205status Mozilla pops up a download select dialogue box, presumably because of the Content-type: header. The form is not reset.
setting bug status to New
pulling in ruslan's necko bugs ->darin
this will need some cleaning out of the elements from the layout/dom side as well.
mass move, v2. qa to me.
*** Bug 119990 has been marked as a duplicate of this bug. ***
-> suresh there is some code in uriloader/base/something that handles 204.
hmm...using NS4.8 and IE, this testcase brings up the dialog something like "The document contains no data". Is this the correct behaviour or something got changed in the testcase?
suresh: 205 is a HTTP/1.1 response code, so NS4x would not understand it. also, IE does not seem to honor it either. you might want to see if opera or konqueror/safari get it right.
Opera 7.02 does not handle 205 correctly either. It does not reset the form (i.e I think it behaves like 204) and it doesn't bring up any downlaod dialog (as mozilla does) or "document contains no data" (like IE does). Using Safari 1.0, clicking on a submit brings up an empty page (no other dialogs though).
Created attachment 116859 [details] [diff] [review] patch This patch makes 205 response to behave like 204 response.
Comment on attachment 116859 [details] [diff] [review] patch sr=darin yeah, we should at least get this in and then worry about full compliance. thx suresh!
Comment on attachment 116859 [details] [diff] [review] patch drop the extra space between ')' and "or" + // - In the case of a 204 (No Content) or
this is fixed in trunk. file a new bug 198309 to address the actual content reset issue.