[Patches] [ python-Patches-430181 ] Make httplib work with picky servers
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 04 Jun 2001 19:40:45 -0700
Patches item #430181, was updated on 2001-06-04 19:40
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=430181&group_id=5470
Category: library
Group: 2.0.1 bugfix
Status: Open
Resolution: None
Priority: 5
Submitted By: Leonard Samuelson (lenski)
Assigned to: Nobody/Anonymous (nobody)
Summary: Make httplib work with picky servers
Initial Comment:
Python2.0: httplib.py: httplib: HTTPconnection
Header processing: (putheader, putrequest, and
endheaders) methods transmit each HTTP header
line using a separate socket send invocation.
Before this change, My Linksys Etherfast Cable/DSL
router (Linksys BEFSR41, firmware v 1.22,
March 31 2000) rejected the request becuase the
entire HTTP header block is not contained in a
single TCP packet.
Clearly, the router is engaging in a noncompliant
optimization! This patch is not required to allow
httplib to work with real servers, making it
completely optional.
The patch I am submitting with this note causes
httplib to work with the router. It is intended
mostly as a model; a developer with greater
familiarity with the library might have a better
approach.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=430181&group_id=5470