[Patches] [ python-Patches-419459 ] urllib adds extra CRLF in posted data
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 27 Apr 2001 04:56:08 -0700
Patches item #419459, was updated on 2001-04-27 04:56
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=419459&group_id=5470
Category: Modules
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Per Cederqvist (ceder)
Assigned to: Nobody/Anonymous (nobody)
Summary: urllib adds extra CRLF in posted data
Initial Comment:
urllib.py and urllib2.py adds an extra trailing CRLF in
data that is sent in a POST statement. That is in
violation of RFC 2616 that says:
> Certain buggy HTTP/1.0 client implementations
> generate extra CRLF's after a POST request. To
> restate what is explicitly forbidden by the
> BNF, an HTTP/1.1 client MUST NOT preface or
> follow a request with an extra CRLF.
The enclosed patch removes the generation of the extra
CRLF. The patch was generated against the current CVS
revisions.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=419459&group_id=5470