Message 84279 - Python tracker
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.