This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2009-10-09.14:55:44
SpamBayes Score 1.3363552e-09
Marked as misclassified No
Message-id <1255100147.66.0.74499268339.issue7093@psf.upfronthosting.co.za>
In-reply-to
Content
I backported xmlrpclib from Python trunk to Python 2.5 to get "connected
socket" (HTTP/1.1), which implies to backport also httplib, ssl and socket. It
works well. It's *much* faster, eg. 960 ms => 70 ms with HTTPS over a VPN.

I just have a little issue: if ServerProxy() URI is an unicode string and an
argument is an unicode string (with at least one non-ASCII character), the
request fails with:

  File ".../SVN/python-trunk/Lib/httplib.py", line 784, in _send_output
    msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 320:
ordinal not in range(128)

Attached patch includes a test.

Can uri contains a login and/or pasword? If yes, should it be encoded to UTF-8
(instead of ASCII)?
History
Date User Action Args
2009-10-09 14:55:48vstinnersetrecipients: + vstinner
2009-10-09 14:55:47vstinnersetmessageid: <1255100147.66.0.74499268339.issue7093@psf.upfronthosting.co.za>
2009-10-09 14:55:46vstinnerlinkissue7093 messages
2009-10-09 14:55:45vstinnercreate