* @copyright Andrew McMillan * @license http://gnu.org/copyleft/gpl.html GNU GPL v2 */ /** * A class for collecting things to do with this request. * * @package rscds */ class CalDAVRequest { /** * Create a new CalDAVRequest object. */ function CalDAVRequest( ) { global $session, $c, $debugging; $this->raw_post = file_get_contents ( 'php://input'); if ( isset($debugging) && isset($_GET['method']) ) { $_SERVER['REQUEST_METHOD'] = $_GET['method']; } $this->method = $_SERVER['REQUEST_METHOD']; /** * A variety of requests may set the "Depth" header to control recursion */ $this->depth = ( isset($_SERVER['HTTP_DEPTH']) ? $_SERVER['HTTP_DEPTH'] : 0 ); if ( $this->depth == 'infinite' ) $this->depth = 99; $this->depth = intval($this->depth); /** * Our path is /