Apache-WebDAV
view release on metacpan or search on metacpan
lib/Apache/WebDAV.pm view on Meta::CPAN
# Parse an incoming PROPFIND request to see what information the client wants.
#
sub get_wanted_properties
{
my ($self, $r) = @_;
# Grab the content of the request so we can parse it and look for which
# properties they are requesting.
my $content = $self->get_request_content($r);
# NSExpand expands namespaces so, xmlns:D eq '{DAV:}' in front of every
# element in that namespace.
my $xml;
eval
{
$xml = XMLin($content, NSExpand => 1, ForceArray => 0, KeyAttr => []);
};
# If parsing the XML file failed, override the 207 status with a 400
( run in 0.467 second using v1.01-cache-2.11-cpan-5b529ec07f3 )