diff --git a/inc/CalDAVRequest.php b/inc/CalDAVRequest.php index ae86d4c6..40707d87 100644 --- a/inc/CalDAVRequest.php +++ b/inc/CalDAVRequest.php @@ -28,6 +28,16 @@ class CalDAVRequest { var $options; + /** + * The raw data sent along with the request + */ + var $raw_post; + + /** + * The HTTP request method: PROPFIND, LOCK, REPORT, OPTIONS, etc... + */ + var $method; + /** * The depth parameter from the request headers, coerced into a valid integer: 0, 1 * or DEPTH_INFINITY which is defined above. The default is set per various RFCs. @@ -39,6 +49,11 @@ class CalDAVRequest */ var $principal; + /** + * The user agent making the request. + */ + var $user_agent; + /** * Create a new CalDAVRequest object. */ @@ -55,6 +70,8 @@ class CalDAVRequest } $this->method = $_SERVER['REQUEST_METHOD']; + $this->user_agent = ((isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "Probably Mulberry")); + /** * A variety of requests may set the "Depth" header to control recursion */