[Python-bugs-list] [ python-Bugs-405427 ] SQL2000+XML returns "400.100" status

nobody nobody@sourceforge.net
Fri, 02 Mar 2001 16:03:53 -0800


Bugs #405427, was updated on 2001-03-02 05:32
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=405427&group_id=5470

Category: Python Library
Group: None
Status: Open
Priority: 5
Submitted By: Luke Kenneth Casson Leighton
Assigned to: Nobody/Anonymous
Summary: SQL2000+XML returns "400.100" status

Initial Comment:
httplib.py expects status codes to be "integers" - of
the form 400, 200, 502 etc etc.

if you run the SQL 2000 server with its XML interface
which is accessed over HTTP, and you do an invalid
query, the HTTP response code is "400.100".  the line
that says self.status = status = int(status) freaks out
and says, erk, can't convert status of value 400.100 to
an integer.

----------------------------------------------------------------------

Comment By: Martin v. Löwis
Date: 2001-03-02 16:03

Message:
Logged In: YES 
user_id=21627

Assuming that the response is something like

HTTP/1.1 400.100 Something went wrong

I think that the server is misbehaving. Such a response is a
clear violation of RFC 2616 (Hypertext Transfer Protocol --
-- HTTP/1.1), section 6.1.,

Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase
CRLF

Section 6.1.1 elaborates the meaning of Status-code,
defining it as "a 3-digit integer result code". Maybe MS
misunderstood the meaning of extension-code, which is an
alternative to Status-code, not an additional piece of
information sent after a full-stop.

I propose to close this as "Won't Fix". Since the server
does not use the HTTP protocol, it does not need to be
supported in httplib. If you need that function, you'll have
to specialize httplib, e.g. by inheriting from HTTPResponse.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=405427&group_id=5470