testing 203 Non-Authoritative support: so far, so good

Jonathan,

Today we were talking about transcoding proxies or some such and the subject
of 203 "not authoritative" responses came up and we didn't know whether
browsers freak out or treat them pretty much like 200. A quick test
shows firefox on this Mac treats them like a 200.
(python test server code is attached.)

By the way, the HTTP Spec(s) speak only of subset or superset of 
"returned metainformation", not content.

http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-09#section-8.2.4
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.4

-- 
Dan
def hello_world(environ, start_response):
    start_response('203 non-auth', [('Content-Type', 'text/html')])
    return ['''<title>203 Test...</title>
    <p>You like?</p>''']


if __name__ == '__main__':
    from wsgiref.simple_server import make_server
    srv = make_server('localhost', 8080, hello_world)
    srv.serve_forever()

Received on Friday, 26 March 2010 01:21:03 UTC