Bugs item #868571, was opened at 2003-12-31 19:18 Message generated for change (Comment added) made by cropr You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=868571&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.3 Status: Open Resolution: None Priority: 5 Submitted By: Grant Monroe (gmonroe) Assigned to: Nobody/Anonymous (nobody) Summary: HTTPResponse.read(amt) fails when response length is UNKNOWN Initial Comment: If the length of the reponse from an HTTPConnection is unknown, then a read with a specified amount fails. File "/home/grant/local/lib/python2.3/httplib.py", line 404, in read self.length -= amt TypeError: unsupported operand type(s) for -=: 'str' and 'int' ---------------------------------------------------------------------- Comment By: ruben decrop (cropr) Date: 2005-05-24 07:31 Message: Logged In: YES user_id=17539 I can reproduce the same error. This happens when the server answers using the HTTP 0.9 protocol. Apparently the _read_status() is getting confused for some HTTP 0.9 messages. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=868571&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com