function xmlrpc_server_output
Sends XML-RPC output to the browser.
Parameters
string $xml: XML to send to the browser.
2 calls to xmlrpc_server_output()
- xmlrpc_server in includes/
xmlrpcs.inc - Invokes XML-RPC methods on this server.
- xmlrpc_server_error in includes/
xmlrpcs.inc - Throws an XML-RPC error.
File
-
includes/
xmlrpcs.inc, line 126
Code
function xmlrpc_server_output($xml) {
$xml = '<?xml version="1.0"?>' . "\n" . $xml;
drupal_add_http_header('Content-Length', strlen($xml));
drupal_add_http_header('Content-Type', 'text/xml');
echo $xml;
drupal_exit();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.