[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions
report at bugs.python.org
Fri Jun 24 17:39:53 CEST 2011
New submission from sorin <sorin.sbarnea at gmail.com>:
It looks that Python 2.7 changes did induce some important bugs into httplib due to to implicit str-unicode encoding/decoding.
One clear example is that PyAMF library doesn't work with Python 2.7 because it is not able to generate binary data POST responses.
Please check http://dev.pyamf.org/ticket/823
(partial trackback, full in above bug)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 937, in endheaders
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 795, in _send_output
msg += message_body
title: Sending binary data with a POST request in httplib can cause Unicode exceptions
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list