7
* This source file is subject to the new BSD license that is bundled
8
* with this package in the file LICENSE.txt.
9
* It is also available through the world-wide-web at this URL:
10
* http://framework.zend.com/license/new-bsd
11
* If you did not receive a copy of the license and are unable to
12
* obtain it through the world-wide-web, please send an email
13
* to license@zend.com so we can send you a copy immediately.
16
* @package Zend_Controller
17
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
18
* @license http://framework.zend.com/license/new-bsd New BSD License
24
require_once 'Zend/XmlRpc/Request.php';
27
* XmlRpc Request object -- Request via STDIN
29
* Extends {@link Zend_XmlRpc_Request} to accept a request via STDIN. Request is
30
* built at construction time using data from STDIN; if no data is available, the
31
* request is declared a fault.
34
* @package Zend_XmlRpc
35
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
36
* @license http://framework.zend.com/license/new-bsd New BSD License
37
* @version $Id: Stdin.php 8064 2008-02-16 10:58:39Z thomas $
39
class Zend_XmlRpc_Request_Stdin extends Zend_XmlRpc_Request
42
* Raw XML as received via request
50
* Attempts to read from php://stdin to get raw POST request; if an error
51
* occurs in doing so, or if the XML is invalid, the request is declared a
56
public function __construct()
58
$fh = fopen('php://stdin', 'r');
60
$this->_fault = new Zend_XmlRpc_Server_Exception(630);
76
* Retrieve the raw XML request
80
public function getRawRequest()