getallheaders_xmlrpc

The Contact Form 7 - Infusionsoft Add-on getallheaders xmlrpc function.

Description

getallheaders_xmlrpc( $m ); 

Parameters (1)

0. $m
The m.

Usage

  1. if ( !function_exists( 'getallheaders_xmlrpc' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/demo/server/server.php'; 
  3.  
  4. // The m. 
  5. $m = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = getallheaders_xmlrpc($m); 
  9.  

Defined (1)

The function is defined in the following location(s).

/src/xmlrpc-3.0/demo/server/server.php  
  1. function getallheaders_xmlrpc($m) 
  2. global $xmlrpcerruser; 
  3. if (function_exists('getallheaders')) 
  4. return new xmlrpcresp(php_xmlrpc_encode(getallheaders())); 
  5. else 
  6. $headers = array(); 
  7. // IIS: poor man's version of getallheaders 
  8. foreach ($_SERVER as $key => $val) 
  9. if (strpos($key, 'HTTP_') === 0) 
  10. $key = ucfirst(str_replace('_', '-', strtolower(substr($key, 5)))); 
  11. $headers[$key] = $val; 
  12. return new xmlrpcresp(php_xmlrpc_encode($headers));