[issue5314] http client error

Jeremy Hylton report at bugs.python.org
Fri Mar 27 20:08:30 CET 2009


Jeremy Hylton <jeremy at alum.mit.edu> added the comment:

The documentation is pretty vague on this point.  If you send something
other than plain ascii, it gets a bit tricky to figure out what other
headers need to be added.  It would be safer for the client to pick an
encoding (e.g. utf-8) and encode the string before calling request(). 
It affects the content-length and presumably also the content-type.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5314>
_______________________________________


More information about the Python-bugs-list mailing list