function xmlrpc_server_output

xmlrpc_server_output($xml)

Sends XML-RPC output to the browser.

Parameters

string $xml: XML to send to the browser.

File

includes/xmlrpcs.inc, line 126
Provides API for defining and handling XML-RPC requests.

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();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!xmlrpcs.inc/function/xmlrpc_server_output/7.x