[Patches] [ python-Patches-419459 ] urllib adds extra CRLF in posted data
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 03 Jul 2001 22:20:16 -0700
Patches item #419459, was opened at 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: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Per Cederqvist (ceder)
>Assigned to: Fred L. Drake, Jr. (fdrake)
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.
----------------------------------------------------------------------
>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-07-03 22:20
Message:
Logged In: YES
user_id=3066
Checked in as Lib/urllib.py revisions 1.127 and 1.126.2.1,
and Lib/urllib2.py revisions 1.15 and 1.13.2.1.
Thanks!
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=419459&group_id=5470