Fix createHttpRequest method for XMLRPC implementation