Backported from trunk (rev# 9728):
event_xmlrpc: fixed the Content-Length header in the xmlrpc request