Re: Why does Spyce send a Status response header?

Philip Semanchuk <[email protected]> Sun, 29 Apr 2007 21:10:33 -0400
Newsgroups gmane.comp.python.spyce.general
Message-ID <[email protected]>
On Apr 29, 2007, at 7:07 PM, Jonathan Ellis wrote:

> Dunno, it was added w/o comment in revision 135.

I wonder if it was only meant for debugging. "Status" doesn't seem to  
have any official weight as a header. It isn't even in the list of  
headers in RFC 4229 which "defines the initial contents of an IANA  
registry that catalogs permanent HTTP header field-names, and of an  
IANA repository that catalogs provisional HTTP header field-names."
http://www.ietf.org/rfc/rfc4229.txt

I can't think of a situation where a client could get to the header but  
not the response code, so the information in the Status header seems  
just a waste of bytes. My vote (not that anyone asked!) would be to  
remove it if such a matter should ever come up for a public vote. But  
then there's the old "if it ain't broke..."

Thanks
Philip





> On Sun, 29 Apr 2007 16:04:46 -0400, "Philip Semanchuk"
> <[email protected]> said:
>> Hi all,
>> I just noticed that in the function sendHeaders() in spyceCmd.py Spyce
>> sends a response header of "Status" that simply repeats the HTTP
>> response code and text:
>>     self.origout.write('Status: %3d "%s"\n' % (self.returncode,
>> resultText))
>>
>>
>> I can't figure out what this header might accomplish; can anyone
>> enlighten me?
>>
>> Thanks
>> Philip
>>
>>
>> ---------------------------------------------------------------------- 
>> ---
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> Spyce-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/spyce-users
>
> ----------------------------------------------------------------------- 
> --
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Spyce-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/spyce-users
>


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/