Net-DAVTalk-0.25/000755 000765 000024 00000000000 15245132266 013672 5ustar00brongstaff000000 000000 Net-DAVTalk-0.25/LICENSE000644 000765 000024 00000046334 15245122464 014710 0ustar00brongstaff000000 000000 This software is copyright (c) 2015-2026 by Fastmail Pty Ltd. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Terms of the Perl programming language system itself a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- This software is Copyright (c) 2015-2026 by Fastmail Pty Ltd. This is free software, licensed under: The GNU General Public License, Version 1, February 1989 GNU GENERAL PUBLIC LICENSE Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The license agreements of most software companies try to keep users at the mercy of those companies. By contrast, our General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. The General Public License applies to the Free Software Foundation's software and to any other program whose authors commit to using it. You can use it for your programs, too. When we speak of free software, we are referring to freedom, not price. Specifically, the General Public License is designed to make sure that you have the freedom to give away or sell copies of free software, that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of a such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must tell them their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any work containing the Program or a portion of it, either verbatim or with modifications. Each licensee is addressed as "you". 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this General Public License and to the absence of any warranty; and give any other recipients of the Program a copy of this General Public License along with the Program. You may charge a fee for the physical act of transferring a copy. 2. You may modify your copy or copies of the Program or any portion of it, and copy and distribute such modifications under the terms of Paragraph 1 above, provided that you also do the following: a) cause the modified files to carry prominent notices stating that you changed the files and the date of any change; and b) cause the whole of any work that you distribute or publish, that in whole or in part contains the Program or any part thereof, either with or without modifications, to be licensed at no charge to all third parties under the terms of this General Public License (except that you may choose to grant warranty protection to some or all third parties, at your option). c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the simplest and most usual way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this General Public License. d) You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. Mere aggregation of another independent work with the Program (or its derivative) on a volume of a storage or distribution medium does not bring the other work under the scope of these terms. 3. You may copy and distribute the Program (or a portion or derivative of it, under Paragraph 2) in object code or executable form under the terms of Paragraphs 1 and 2 above provided that you also do one of the following: a) accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Paragraphs 1 and 2 above; or, b) accompany it with a written offer, valid for at least three years, to give any third party free (except for a nominal charge for the cost of distribution) a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Paragraphs 1 and 2 above; or, c) accompany it with the information you received as to where the corresponding source code may be obtained. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form alone.) Source code for a work means the preferred form of the work for making modifications to it. For an executable file, complete source code means all the source code for all modules it contains; but, as a special exception, it need not include source code for modules which are standard libraries that accompany the operating system on which the executable file runs, or for standard header files or definitions files that accompany that operating system. 4. You may not copy, modify, sublicense, distribute or transfer the Program except as expressly provided under this General Public License. Any attempt otherwise to copy, modify, sublicense, distribute or transfer the Program is void, and will automatically terminate your rights to use the Program under this License. However, parties who have received copies, or rights to use copies, from you under this General Public License will not have their licenses terminated so long as such parties remain in full compliance. 5. By copying, distributing or modifying the Program (or any work based on the Program) you indicate your acceptance of this license to do so, and all its terms and conditions. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. 7. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of the license which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the license, you may choose any version ever published by the Free Software Foundation. 8. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to humanity, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, see . Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19xx name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (a program to direct compilers to make passes at assemblers) written by James Hacker. , 1 April 1989 Moe Ghoul, President of Vice That's all there is to it! --- The Perl Artistic License 1.0 --- This software is Copyright (c) 2015-2026 by Fastmail Pty Ltd. This is free software, licensed under: The Perl Artistic License 1.0 The "Artistic License" Preamble The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications. Definitions: "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification. "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder as specified below. "Copyright Holder" is whoever is named in the copyright or copyrights for the package. "You" is you, if you're thinking about copying or distributing this Package. "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.) "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version. 3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as uunet.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. b) use the modified Package only within your corporation or organization. c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version. d) make other distribution arrangements with the Copyright Holder. 4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following: a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version. b) accompany the distribution with the machine-readable source of the Package with your modifications. c) give non-standard executables non-standard names, and clearly document the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version. d) make other distribution arrangements with the Copyright Holder. 5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. You may embed this Package's interpreter within an executable of yours (by linking); this shall be construed as a mere form of aggregation, provided that the complete Standard Version of the interpreter is so embedded. 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whoever generated them, and may be sold commercially, and may be aggregated with this Package. If such scripts or library files are aggregated with this Package via the so-called "undump" or "unexec" methods of producing a binary executable image, then distribution of such an image shall neither be construed as a distribution of this Package nor shall it fall under the restrictions of Paragraphs 3 and 4, provided that you do not represent such an executable image as a Standard Version of this Package. 7. C subroutines (or comparably compiled subroutines in other languages) supplied by you and linked into this Package in order to emulate subroutines and variables of the language defined by this Package shall not be considered part of this Package, but are the equivalent of input as in Paragraph 6, provided these subroutines do not change the language in any way that would cause it to fail the regression tests for the language. 8. Aggregation of this Package with a commercial distribution is always permitted provided that the use of this Package is embedded; that is, when no overt attempt is made to make this Package's interfaces visible to the end user of the commercial distribution. Such use shall not be construed as a distribution of this Package. 9. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End Net-DAVTalk-0.25/Changes000644 000765 000024 00000003750 15245131277 015173 0ustar00brongstaff000000 000000 Revision history for Net-DAVTalk 0.25 Mon Aug 31 2026 - relicensed from Artistic License 2.0 to the same terms as Perl itself (Artistic License 1.0 or GPL version 1 or later) - include a LICENSE file in the distribution - rewrite the custom-headers merge in SafeRequest (no behaviour change) 0.24 Thu Feb 12 09:29:06 EST 2026 - add "SafeRequest" API to capture errors (thanks rjbs) PR#6 PR#7 0.23 Wed 22 Jan 15:55 2025 - pass SSL_options through to HTTP::Tiny 0.22 Mon 14 Mar 12:33 2022 - set the useragent to the module version rather than always 0.01 0.21 Tue 4 May 12:52 2021 - uri_decode the homeset when doing discovery (makes shortpath work correctly) 0.20 Thu Apr 15 02:29 2021 - add support for setting custom headers, thanks Hernan Lopes 0.19 Wed May 6 12:34 2020 - fix handling of the UA timeout 0.18 Tue Apr 7 15:54 2020 - remove FATAL warnings from DAVTalk module - don't double-decode XML (thanks tadzik) PR#1 - provide the 'ua()' method to get/set the user agent after creation - use the UA's own timeout support rather than duplicating it 0.16 Fri May 10 10:41 2019 - add GetPropsArray API call to get multi-value properties 0.15 Wed Oct 25 10:56 2017 - allow up to 10 30x redirects 0.14 Mon Mar 20 11:55 2017 - fix totally broken regex. Never install version 13 of anything 0.13 Mon Mar 20 11:42 2017 - remove trailing slash from SetURL to avoid double // in fullpath 0.12 Fri Nov 18 00:53 2016 - work with attributes with namespaces on them 0.11 Wed Oct 12 13:52 2016 - avoid adding default namespace to attributes 0.10 Wed Sep 28 11:18 2016 - fix bug where URI wasn't used an redirects were needed 0.09 Tue May 3 09:07 2016 - depend on DateTime::Format::ISO8601 0.08 Mon May 2 11:43 2016 - Obviously there have been tons of changes up until now. - this release includes GetProps API call and uses it 0.01 Date/time First version, released on an unsuspecting world. Net-DAVTalk-0.25/MANIFEST000644 000765 000024 00000000624 15245132266 015025 0ustar00brongstaff000000 000000 Changes lib/Net/DAVTalk.pm lib/Net/DAVTalk/XMLParser.pm LICENSE Makefile.PL MANIFEST This list of files README t/00-load.t t/boilerplate.t t/manifest.t t/parser.t t/pod-coverage.t t/pod.t t/testdata/numeric.xml t/testdata/unicode.xml META.yml Module YAML meta-data (added by MakeMaker) META.json Module JSON meta-data (added by MakeMaker) Net-DAVTalk-0.25/t/000755 000765 000024 00000000000 15245132265 014134 5ustar00brongstaff000000 000000 Net-DAVTalk-0.25/PaxHeader/README000644 000765 000024 00000000210 15245122632 016510 xustar00brongstaff000000 000000 30 mtime=1788126618.303674284 57 LIBARCHIVE.xattr.com.apple.provenance=AQIA7l1WdRyXcOQ 49 SCHILY.xattr.com.apple.provenance=î]Vu—pä Net-DAVTalk-0.25/README000644 000765 000024 00000003236 15245122632 014552 0ustar00brongstaff000000 000000 Net-DAVTalk The README is used to introduce the module and provide instructions on how to install the module, any machine dependencies it may have (for example C compilers and installed libraries) and any other information that should be provided before the module is installed. A README file is required for CPAN modules since CPAN extracts the README file from a module distribution so that people browsing the archive can use it to get an idea of the module's uses. It is usually a good idea to provide version information here so that people can decide whether fixes for the module are worth downloading. INSTALLATION To install this module, run the following commands: perl Makefile.PL make make test make install SUPPORT AND DOCUMENTATION After installing, you can find documentation for this module with the perldoc command. perldoc Net::DAVTalk You can also look for information at: RT, CPAN's request tracker (report bugs here) http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-DAVTalk AnnoCPAN, Annotated CPAN documentation http://annocpan.org/dist/Net-DAVTalk CPAN Ratings http://cpanratings.perl.org/d/Net-DAVTalk Search CPAN http://search.cpan.org/dist/Net-DAVTalk/ LICENSE AND COPYRIGHT Copyright 2015-2026 Fastmail Pty Ltd. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself; that is, either the GNU General Public License as published by the Free Software Foundation (version 1, or at your option any later version), or the Artistic License. See http://dev.perl.org/licenses/ and the LICENSE file included with this distribution for more information. Net-DAVTalk-0.25/META.yml000644 000765 000024 00000001304 15245132266 015141 0ustar00brongstaff000000 000000 --- abstract: 'Interface to talk to DAV servers' author: - 'Bron Gondwana ' build_requires: Test::More: '0' configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 1 generated_by: 'ExtUtils::MakeMaker version 7.76, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: Net-DAVTalk no_index: directory: - t - inc requires: DateTime::Format::ISO8601: '0' HTTP::Tiny: '0.016' JSON: '0' JSON::XS: '0' Tie::DataUUID: '1.02' URI: '1.60' XML::Fast: '0.11' XML::Spice: '0.03' perl: '5.006' version: '0.25' x_serialization_backend: 'CPAN::Meta::YAML version 0.020' Net-DAVTalk-0.25/lib/000755 000765 000024 00000000000 15245132265 014437 5ustar00brongstaff000000 000000 Net-DAVTalk-0.25/Makefile.PL000644 000765 000024 00000001746 15245122553 015652 0ustar00brongstaff000000 000000 use 5.006; use strict; use warnings FATAL => 'all'; use ExtUtils::MakeMaker; WriteMakefile( NAME => 'Net::DAVTalk', AUTHOR => q{Bron Gondwana }, VERSION_FROM => 'lib/Net/DAVTalk.pm', ABSTRACT_FROM => 'lib/Net/DAVTalk.pm', LICENSE => 'Perl_5', PL_FILES => {}, MIN_PERL_VERSION => 5.006, CONFIGURE_REQUIRES => { 'ExtUtils::MakeMaker' => 0, }, BUILD_REQUIRES => { 'Test::More' => 0, }, PREREQ_PM => { 'HTTP::Tiny' => '0.016', 'Tie::DataUUID' => '1.02', 'URI' => '1.60', 'XML::Fast' => '0.11', 'XML::Spice' => '0.03', 'JSON' => 0, 'JSON::XS' => 0, 'DateTime::Format::ISO8601' => 0, }, dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, clean => { FILES => 'Net-DAVTalk-*' }, ); Net-DAVTalk-0.25/META.json000644 000765 000024 00000002252 15245132266 015314 0ustar00brongstaff000000 000000 { "abstract" : "Interface to talk to DAV servers", "author" : [ "Bron Gondwana " ], "dynamic_config" : 1, "generated_by" : "ExtUtils::MakeMaker version 7.76, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : 2 }, "name" : "Net-DAVTalk", "no_index" : { "directory" : [ "t", "inc" ] }, "prereqs" : { "build" : { "requires" : { "Test::More" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "runtime" : { "requires" : { "DateTime::Format::ISO8601" : "0", "HTTP::Tiny" : "0.016", "JSON" : "0", "JSON::XS" : "0", "Tie::DataUUID" : "1.02", "URI" : "1.60", "XML::Fast" : "0.11", "XML::Spice" : "0.03", "perl" : "5.006" } } }, "release_status" : "stable", "version" : "0.25", "x_serialization_backend" : "JSON::PP version 4.16" } Net-DAVTalk-0.25/lib/Net/000755 000765 000024 00000000000 15245132265 015165 5ustar00brongstaff000000 000000 Net-DAVTalk-0.25/lib/Net/DAVTalk.pm000644 000765 000024 00000042345 15245131254 016756 0ustar00brongstaff000000 000000 package Net::DAVTalk; use strict; use Carp; use DateTime::Format::ISO8601; use DateTime::TimeZone; use HTTP::Tiny; use JSON; use Tie::DataUUID qw{$uuid}; use XML::Spice; use Net::DAVTalk::XMLParser; use MIME::Base64 qw(encode_base64); use Encode qw(encode); use URI::Escape qw(uri_escape uri_unescape); use URI; =head1 NAME Net::DAVTalk - Interface to talk to DAV servers =head1 VERSION Version 0.24 =cut our $VERSION = '0.25'; =head1 SYNOPSIS Net::DAVTalk is was originally designed as a service module for Net::CalDAVTalk and Net::CardDAVTalk, abstracting the process of connecting to a DAV server and parsing the XML responses. Example: use Net::DAVTalk; use XML::Spice; my $davtalk = Net::DAVTalk->new( url => "https://dav.example.com/", user => "foo\@example.com", password => "letmein", headers => { Cookie => "123", Referer => "456" }, ); $davtalk->Request( 'MKCALENDAR', "$calendarId/", x('C:mkcalendar', $Self->NS(), x('D:set', x('D:prop', @Properties), ), ), ); $davtalk->Request( 'DELETE', "$calendarId/", ); =head1 SUBROUTINES/METHODS =head2 $class->new(%Options) Options: url: either full https?:// url, or relative base path on the server to the DAV endpoint host, scheme and port: alternative to using full URL. If URL doesn't start with https?:// then these will be used to construct the endpoint URI. expandurl and wellknown: if these are set, then the wellknown name (caldav and carddav are both defined) will be used to resolve /.well-known/$wellknown to find the current-user-principal URI, and then THAT will be resovlved to find the $wellknown-home-set URI, which will be used as the URL for all further actions on this object. user and password: if these are set, perform basic authentication. user and access_token: if these are set, perform Bearer (OAUTH2) authentication. headers: a hashref of additional headers to add to every request SSL_options: a hashref of SSL options to pass down to the default user agent =cut # General methods sub new { my ($Class, %Params) = @_; unless ($Params{url}) { confess "URL not supplied"; } # Assume url points to xyz-home-set, otherwise expand the url if (delete $Params{expandurl}) { # Locating Services for CalDAV and CardDAV (RFC6764) my $PrincipalURL = $Class->GetCurrentUserPrincipal(%Params); $Params{principal} = $PrincipalURL; my $HomeSet = $Class->GetHomeSet( %Params, url => $PrincipalURL, ); $Params{url} = $HomeSet; } my $Self = bless \%Params, ref($Class) || $Class; $Self->SetURL($Params{url}); $Self->SetPrincipalURL($Params{principal}); $Self->ns(D => 'DAV:'); return $Self; } =head2 my $ua = $Self->ua(); =head2 $Self->ua($setua); Get or set the useragent (HTTP::Tiny or compatible) that will be used to make the requests: e.g. my $ua = $Self->ua(); $Self->ua(HTTP::Tiny->new(agent => "MyAgent/1.0", timeout => 5)); =cut sub ua { my $Self = shift; if (@_) { $Self->{ua} = shift; } else { $Self->{ua} ||= HTTP::Tiny->new( agent => "Net-DAVTalk/$VERSION", SSL_options => $Self->{SSL_options}, ); } return $Self->{ua}; } =head2 $Self->SetURL($url) Change the endpoint URL for an existing connection. =cut sub SetURL { my ($Self, $URL) = @_; $URL =~ s{/$}{}; # remove any trailing slash if ($URL =~ m{^https?://}) { my ($HTTPS, $Hostname, $Port, $BasePath) = $URL =~ m{^http(s)?://([^/:]+)(?::(\d+))?(.*)?}; unless ($Hostname) { confess "Invalid hostname in '$URL'"; } $Self->{scheme} = $HTTPS ? 'https' : 'http'; $Self->{host} = $Hostname; $Self->{port} = ($Port || ($HTTPS ? 443 : 80)); $Self->{basepath} = $BasePath; } else { $Self->{basepath} = $URL; } $Self->{url} = "$Self->{scheme}://$Self->{host}:$Self->{port}$Self->{basepath}"; return $Self->{url}; } =head2 $Self->SetPrincipalURL($url) Set the URL to the DAV Principal =cut sub SetPrincipalURL { my ($Self, $PrincipalURL) = @_; return $Self->{principal} = $PrincipalURL; } =head2 $Self->fullpath($shortpath) Convert from a relative path to a full path: e.g my $path = $Dav->fullpath('Default'); ## /dav/calendars/user/foo/Default NOTE: a you can pass a non-relative full path (leading /) to this function and it will be returned unchanged. =cut sub fullpath { my $Self = shift; my $path = shift; my $basepath = $Self->{basepath}; return $path if $path =~ m{^/}; return "$basepath/$path"; } =head2 $Self->shortpath($fullpath) Convert from a full path to a relative path e.g my $path = $Dav->fullpath('/dav/calendars/user/foo/Default'); ## Default NOTE: if the full path is outside the basepath of the object, it will be unchanged. my $path = $Dav->fullpath('/dav/calendars/user/bar/Default'); ## /dav/calendars/user/bar/Default =cut sub shortpath { my $Self = shift; my $origpath = shift; my $basepath = $Self->{basepath}; my $path = $origpath; $path =~ s{^$basepath/?}{}; return ($path eq '' ? $origpath : $path); } =head2 $Self->Request($method, $path, $content, %headers) The whole point of the module! Perform a DAV request against the endpoint, returning the response as a parsed hash. method: http method, i.e. GET, PROPFIND, MKCOL, DELETE, etc path: relative to base url. With a leading slash, relative to server root, i.e. "Default/", "/dav/calendars/user/foo/Default". content: if the method takes a body, raw bytes to send headers: additional headers to add to request, i.e (Depth => 1) In the event of timeout or most HTTP errors, an exception will be raised. =head2 $Self->SafeRequest($method, $path, $content, %headers) my $Result = $DAVTalk->SafeRequest($method, $path, $content, %headers) This is mostly Request, but it won't throw an exception on most errors. Instead, it always returns a reference to a hash with these entries: payload - a structured representation of the DAV response, if possible; this is the same thing that the ->Request method returns http_response - the underlying HTTP response from HTTP::Tiny error - a string describing the error condition, if any The C method uses C under the hood, converting error results into exceptions. =cut sub SafeRequest { my ($Self, $Method, $Path, $Content, %Headers) = @_; # setup request {{{ $Content = '' unless defined $Content; my $Bytes = encode('UTF-8', $Content); my $ua = $Self->ua(); $Headers{'Content-Type'} //= 'application/xml; charset=utf-8'; if ($Self->{user}) { $Headers{'Authorization'} = $Self->auth_header(); } %Headers = (%Headers, %{$Self->{headers}}) if $Self->{headers}; # XXX - Accept-Encoding for gzip, etc? # }}} # send request {{{ my $URI = $Self->request_url($Path); my $Response = $ua->request($Method, $URI, { headers => \%Headers, content => $Bytes, }); if ($Response->{status} == '599' and $Response->{content} =~ m/timed out/i) { return { http_response => $Response, error => "Error with $Method for $URI (504, Gateway Timeout)", }; } my $count = 0; while ($Response->{status} =~ m{^30[1278]} and (++$count < 10)) { my $location = URI->new_abs($Response->{headers}{location}, $URI); if ($ENV{DEBUGDAV}) { warn "******** REDIRECT ($count) $Response->{status} to $location\n"; } $Response = $ua->request($Method, $location, { headers => \%Headers, content => $Bytes, }); if ($Response->{status} == '599' and $Response->{content} =~ m/timed out/i) { return { http_response => $Response, error => "Error with $Method for $location (504, Gateway Timeout)", }; } } # one is enough my $ResponseContent = $Response->{content} || ''; if ($ENV{DEBUGDAV}) { warn "<<<<<<<< $Method $URI HTTP/1.1\n$Bytes\n" . ">>>>>>>> $Response->{protocol} $Response->{status} $Response->{reason}\n$ResponseContent\n" . "========\n\n"; } if ($Method eq 'REPORT' && $Response->{status} == 403) { # maybe invalid sync token, need to return that fact my $Xml = xmlToHash($ResponseContent); if (exists $Xml->{"{DAV:}valid-sync-token"}) { # This weird "return error in payload" behavior is legacy behavior, and # quite possibly should be changed. It's the only place we returned an # "error" in the hashref from Request before writing SafeRequest. # -- rjbs, 2026-02-11 return { http_response => $Response, payload => { error => "valid-sync-token" }, }; } } unless ($Response->{success}) { return { http_response => $Response, error => "ERROR WITH REQUEST\n" . "<<<<<<<< $Method $URI HTTP/1.1\n$Bytes\n" . ">>>>>>>> $Response->{protocol} $Response->{status} $Response->{reason}\n$ResponseContent\n" . "========\n\n", }; } if ((grep { $Method eq $_ } qw{GET DELETE}) or ($Response->{status} != 207) or (not $ResponseContent)) { return { http_response => $Response, payload => { content => $ResponseContent }, }; } # }}} # parse XML response {{{ my $Xml = xmlToHash($ResponseContent); # Normalise XML if (exists($Xml->{"{DAV:}response"})) { if (ref($Xml->{"{DAV:}response"}) ne 'ARRAY') { $Xml->{"{DAV:}response"} = [ $Xml->{"{DAV:}response"} ]; } foreach my $Response (@{$Xml->{"{DAV:}response"}}) { if (exists($Response->{"{DAV:}propstat"})) { unless (ref($Response->{"{DAV:}propstat"}) eq 'ARRAY') { $Response->{"{DAV:}propstat"} = [$Response->{"{DAV:}propstat"}]; } } } } return { http_response => $Response, payload => $Xml, }; # }}} } sub Request { my ($Self, @Rest) = @_; my ($Struct) = $Self->SafeRequest(@Rest); if ($Struct->{error}) { confess $Struct->{error}; } return $Struct->{payload}; } =head2 $Self->GetProps($Path, @Props) perform a propfind on a particular path and get the properties back =cut sub GetProps { my ($Self, $Path, @Props) = @_; my @res = $Self->GetPropsArray($Path, @Props); return wantarray ? map { $_->[0] } @res : $res[0][0]; } =head2 $Self->GetPropsArray($Path, @Props) perform a propfind on a particular path and get the properties back as an array of one or more items =cut sub GetPropsArray { my ($Self, $Path, @Props) = @_; # Fetch one or more properties. # Use [ 'prop', 'sub', 'item' ] to dig into result structure my $NS_D = $Self->ns('D'); my $Response = $Self->Request( 'PROPFIND', $Path, x('D:propfind', $Self->NS(), x('D:prop', map { ref $_ ? x($_->[0]): x($_) } @Props, ), ), Depth => 0, ); my @Results; foreach my $Response (@{$Response->{"{$NS_D}response"} || []}) { foreach my $Propstat (@{$Response->{"{$NS_D}propstat"} || []}) { my $PropData = $Propstat->{"{$NS_D}prop"} || next; for my $Prop (@Props) { my @Values = ($PropData); # Array ref means we need to git through structure foreach my $Key (ref $Prop ? @$Prop : $Prop) { my @New; foreach my $Result (@Values) { if ($Key =~ m/:/) { my ($N, $P) = split /:/, $Key; my $NS = $Self->ns($N); $Result = $Result->{"{$NS}$P"}; } else { $Result = $Result->{$Key}; } if (ref($Result) eq 'ARRAY') { push @New, @$Result; } elsif (defined $Result) { push @New, $Result; } } @Values = @New; } push @Results, [ map { $_->{content} } @Values ]; } } } return wantarray ? @Results : $Results[0]; } =head2 $Self->GetCurrentUserPrincipal() =head2 $class->GetCurrentUserPrincipal(%Args) Can be called with the same args as new() as a class method, or on an existing object. Either way it will use the .well-known URI to find the path to the current-user-principal. Returns a string with the path. =cut sub GetCurrentUserPrincipal { my ($Class, %Args) = @_; if (ref $Class) { %Args = %{$Class}; $Class = ref $Class; } my $OriginalURL = $Args{url} || ''; my $Self = $Class->new(%Args); my $NS_D = $Self->ns('D'); my @BasePath = split '/', $Self->{basepath}; @BasePath = ('', ".well-known/$Args{wellknown}") unless @BasePath; PRINCIPAL: while(1) { $Self->SetURL(join '/', @BasePath); if (my $Principal = $Self->GetProps('', [ 'D:current-user-principal', 'D:href' ])) { $Self->SetURL(uri_unescape($Principal)); return $Self->{url}; } pop @BasePath; last unless @BasePath; } croak "Error finding current user principal at '$OriginalURL'"; } =head2 $Self->GetHomeSet =head2 $class->GetHomeSet(%Args) Can be called with the same args as new() as a class method, or on an existing object. Either way it assumes that the created object has a 'url' parameter pointing at the current user principal URL (see GetCurrentUserPrincipal above) Returns a string with the path to the home set. =cut sub GetHomeSet { my ($Class, %Args) = @_; if (ref $Class) { %Args = %{$Class}; $Class = ref $Class; } my $OriginalURL = $Args{url} || ''; my $Self = $Class->new(%Args); my $NS_D = $Self->ns('D'); my $NS_HS = $Self->ns($Args{homesetns}); my $HomeSet = $Args{homeset}; if (my $Homeset = $Self->GetProps('', [ "$Args{homesetns}:$HomeSet", 'D:href' ])) { $Self->SetURL(uri_unescape($Homeset)); return $Self->{url}; } croak "Error finding $HomeSet home set at '$OriginalURL'"; } =head2 $Self->genuuid() Helper to generate a uuid string. Returns a UUID, e.g. my $uuid = $DAVTalk->genuuid(); # 9b9d68af-ad13-46b8-b7ab-30ab70da14ac =cut sub genuuid { my $Self = shift; return "$uuid"; } =head2 $Self->auth_header() Generate the authentication header to use on requests: e.g: $Headers{'Authorization'} = $Self->auth_header(); =cut sub auth_header { my $Self = shift; if ($Self->{password}) { return 'Basic ' . encode_base64("$Self->{user}:$Self->{password}", ''); } if ($Self->{access_token}) { return "Bearer $Self->{access_token}"; } croak "Need a method to authenticate user (password or access_token)"; } =head2 $Self->request_url() Generate the authentication header to use on requests: e.g: $Headers{'Authorization'} = $Self->auth_header(); =cut sub request_url { my $Self = shift; my $Path = shift; my $URL = $Self->{url}; # If a reference, assume absolute if (ref $Path) { ($URL, $Path) = $$Path =~ m{(^https?://[^/]+)(.*)$}; } if ($Path) { $Path = join "/", map { uri_escape $_ } split m{/}, $Path, -1; if ($Path =~ m{^/}) { $URL =~ s{(^https?://[^/]+)(.*)}{$1$Path}; } else { $URL =~ s{/$}{}; $URL .= "/$Path"; } } return $URL; } =head2 $Self->NS() Returns a hashref of the 'xmlns:shortname' => 'full namespace' items for use in XML::Spice body generation, e.g. $DAVTalk->Request( 'MKCALENDAR', "$calendarId/", x('C:mkcalendar', $Self->NS(), x('D:set', x('D:prop', @Properties), ), ), ); # { 'xmlns:C' => 'urn:ietf:params:xml:ns:caldav', 'xmlns:D' => 'DAV:' } =cut sub NS { my $Self = shift; return { map { ( "xmlns:$_" => $Self->ns($_) ) } $Self->ns(), }; } =head2 $Self->ns($key, $value) Get or set namespace aliases, e.g $Self->ns(C => 'urn:ietf:params:xml:ns:caldav'); my $NS_C = $Self->ns('C'); # urn:ietf:params:xml:ns:caldav =cut sub ns { my $Self = shift; # case: keys return keys %{$Self->{ns}} unless @_; my $key = shift; # case read one return $Self->{ns}{$key} unless @_; # case write my $prev = $Self->{ns}{$key}; $Self->{ns}{$key} = shift; return $prev; } =head2 function2 =cut =head1 AUTHOR Bron Gondwana, C<< >> =head1 BUGS Please report any bugs or feature requests to C, or through the web interface at L. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. =head1 SUPPORT You can find documentation for this module with the perldoc command. perldoc Net::DAVTalk You can also look for information at: =over 4 =item * RT: CPAN's request tracker (report bugs here) L =item * AnnoCPAN: Annotated CPAN documentation L =item * CPAN Ratings L =item * Search CPAN L =back =head1 ACKNOWLEDGEMENTS =head1 LICENSE AND COPYRIGHT Copyright 2015-2026 Fastmail Pty Ltd. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself; that is, either the GNU General Public License as published by the Free Software Foundation (version 1, or at your option any later version), or the Artistic License. See L and the LICENSE file included with this distribution for more information. =cut 1; # End of Net::DAVTalk Net-DAVTalk-0.25/lib/Net/DAVTalk/000755 000765 000024 00000000000 15245132265 016413 5ustar00brongstaff000000 000000 Net-DAVTalk-0.25/lib/Net/DAVTalk/PaxHeader/XMLParser.pm000644 000765 000024 00000000206 15245122527 022535 xustar00brongstaff000000 000000 28 mtime=1788126551.9561506 57 LIBARCHIVE.xattr.com.apple.provenance=AQIA7l1WdRyXcOQ 49 SCHILY.xattr.com.apple.provenance=î]Vu—pä Net-DAVTalk-0.25/lib/Net/DAVTalk/XMLParser.pm000644 000765 000024 00000005700 15245122527 020570 0ustar00brongstaff000000 000000 package Net::DAVTalk::XMLParser; use base 'Exporter'; =head1 NAME Net::DAVTalk - Interface to talk to DAV servers =head1 SYNOPSIS Net::DAVTalk::XMLParser is a simple wrapper around XML::Fast, returning a more usable structure like that created by XML::Simple, but running approximately 10 times faster in testing. =head1 SUBROUTINES/METHODS =head2 $hashref = xmlToHash($xmlstring); Converts an XML string to a hashref of the content. =head1 ACKNOWLEDGEMENTS =head1 LICENSE AND COPYRIGHT Copyright 2015-2026 Fastmail Pty Ltd. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself; that is, either the GNU General Public License as published by the Free Software Foundation (version 1, or at your option any later version), or the Artistic License. See L and the LICENSE file included with this distribution for more information. =cut our @EXPORT = qw(xmlToHash); use XML::Fast; use Carp qw(confess); sub _nsexpand { my $data = shift; my $ns = shift || {}; if (ref($data) eq 'HASH') { my @keys; my %res; foreach my $key (keys %$data) { if ($key eq '@xmlns') { $ns->{''} = $data->{$key}; } elsif ($key eq '#text') { $res{'content'} = $data->{$key}; } elsif (substr($key, 0, 7) eq '@xmlns:') { my $namespace = substr($key, 7); $ns->{$namespace} = $data->{$key}; # this is what XML::Simple does with existing namespaces $res{"{http://www.w3.org/2000/xmlns/}$namespace"} = $data->{$key}; } else { push @keys, $key; } } foreach my $key (@keys) { my %ns = %$ns; # copy, woot my $sub = _nsexpand($data->{$key}, \%ns); my $pos = index($key, ':'); if ($pos > 0) { my $namespace = substr($key, 0, $pos); my $rest = substr($key, $pos+1); # move attribute sigil from namespace to value $rest = "\@$rest" if $namespace =~ s/^\@//; my $expanded = $ns{$namespace}; confess "Unknown namespace $namespace" unless $expanded; $key = "{$expanded}$rest"; } elsif ($key =~ m/^\@/) { # Attributes are never subject to the default namespace. # An attribute without an explicit namespace prefix is # considered not to be in any namespace. } elsif ($ns{''}) { my $expanded = $ns{''}; $key = "{$expanded}$key"; } $res{$key} = $sub; } return \%res; } elsif (ref($data) eq 'ARRAY') { return [ map { _nsexpand($_, $ns) } @$data ]; } else { # like XML::Simple's ExpandContent option return { content => $data }; } } sub xmlToHash { my $text = shift; my $Raw = XML::Fast::xml2hash($text, attr => '@'); # like XML::Simple's NSExpand option my $Xml = _nsexpand($Raw); # XML::Simple returns the content of the top level key # (there should only be one) my ($key) = keys %$Xml; return $Xml->{$key}; } 1; Net-DAVTalk-0.25/t/PaxHeader/pod.t000644 000765 000024 00000000210 15154401720 017037 xustar00brongstaff000000 000000 30 mtime=1773274064.126092225 57 LIBARCHIVE.xattr.com.apple.provenance=AQIA7l1WdRyXcOQ 49 SCHILY.xattr.com.apple.provenance=î]Vu—pä Net-DAVTalk-0.25/t/pod.t000644 000765 000024 00000000401 15154401720 015070 0ustar00brongstaff000000 000000 #!perl -T use 5.006; use strict; use warnings FATAL => 'all'; use Test::More; # Ensure a recent version of Test::Pod my $min_tp = 1.22; eval "use Test::Pod $min_tp"; plan skip_all => "Test::Pod $min_tp required for testing POD" if $@; all_pod_files_ok(); Net-DAVTalk-0.25/t/testdata/000755 000765 000024 00000000000 15245132265 015745 5ustar00brongstaff000000 000000 Net-DAVTalk-0.25/t/PaxHeader/manifest.t000644 000765 000024 00000000210 15154401720 020063 xustar00brongstaff000000 000000 30 mtime=1773274064.125869849 57 LIBARCHIVE.xattr.com.apple.provenance=AQIA7l1WdRyXcOQ 49 SCHILY.xattr.com.apple.provenance=î]Vu—pä Net-DAVTalk-0.25/t/manifest.t000644 000765 000024 00000000507 15154401720 016123 0ustar00brongstaff000000 000000 #!perl -T use 5.006; use strict; use warnings FATAL => 'all'; use Test::More; unless ( $ENV{RELEASE_TESTING} ) { plan( skip_all => "Author tests not required for installation" ); } my $min_tcm = 0.9; eval "use Test::CheckManifest $min_tcm"; plan skip_all => "Test::CheckManifest $min_tcm required" if $@; ok_manifest(); Net-DAVTalk-0.25/t/PaxHeader/parser.t000644 000765 000024 00000000207 15154401720 017557 xustar00brongstaff000000 000000 29 mtime=1773274064.12594685 57 LIBARCHIVE.xattr.com.apple.provenance=AQIA7l1WdRyXcOQ 49 SCHILY.xattr.com.apple.provenance=î]Vu—pä Net-DAVTalk-0.25/t/parser.t000644 000765 000024 00000001022 15154401720 015602 0ustar00brongstaff000000 000000 #!perl -T use 5.006; use strict; use warnings FATAL => 'all'; use Test::More; use Encode qw(encode_utf8 decode_utf8); BEGIN { plan tests => 5; use_ok( 'Net::DAVTalk::XMLParser' ) || print "Bail out!\n"; } local $/ = undef; for my $name (qw(numeric unicode)) { open(FH, "< t/testdata/$name.xml") || die "failed to find test file $name.xml"; my $data = ; close(FH); my $res = xmlToHash($data); is($res->{'{mdash}mdash'}{content}, "\x{2014}"); is($res->{'{mdash}mdash'}{'@ndash'}{content}, "\x{2013}"); } Net-DAVTalk-0.25/t/PaxHeader/00-load.t000644 000765 000024 00000000210 15154401720 017411 xustar00brongstaff000000 000000 30 mtime=1773274064.125726557 57 LIBARCHIVE.xattr.com.apple.provenance=AQIA7l1WdRyXcOQ 49 SCHILY.xattr.com.apple.provenance=î]Vu—pä Net-DAVTalk-0.25/t/00-load.t000644 000765 000024 00000000346 15154401720 015452 0ustar00brongstaff000000 000000 #!perl -T use 5.006; use strict; use warnings FATAL => 'all'; use Test::More; plan tests => 1; BEGIN { use_ok( 'Net::DAVTalk' ) || print "Bail out!\n"; } diag( "Testing Net::DAVTalk $Net::DAVTalk::VERSION, Perl $], $^X" ); Net-DAVTalk-0.25/t/PaxHeader/boilerplate.t000644 000765 000024 00000000210 15154401720 020557 xustar00brongstaff000000 000000 30 mtime=1773274064.125797557 57 LIBARCHIVE.xattr.com.apple.provenance=AQIA7l1WdRyXcOQ 49 SCHILY.xattr.com.apple.provenance=î]Vu—pä Net-DAVTalk-0.25/t/boilerplate.t000644 000765 000024 00000002505 15154401720 016617 0ustar00brongstaff000000 000000 #!perl -T use 5.006; use strict; use warnings FATAL => 'all'; use Test::More; plan tests => 3; sub not_in_file_ok { my ($filename, %regex) = @_; open( my $fh, '<', $filename ) or die "couldn't open $filename for reading: $!"; my %violated; while (my $line = <$fh>) { while (my ($desc, $regex) = each %regex) { if ($line =~ $regex) { push @{$violated{$desc}||=[]}, $.; } } } if (%violated) { fail("$filename contains boilerplate text"); diag "$_ appears on lines @{$violated{$_}}" for keys %violated; } else { pass("$filename contains no boilerplate text"); } } sub module_boilerplate_ok { my ($module) = @_; not_in_file_ok($module => 'the great new $MODULENAME' => qr/ - The great new /, 'boilerplate description' => qr/Quick summary of what the module/, 'stub function definition' => qr/function[12]/, ); } TODO: { local $TODO = "Need to replace the boilerplate text"; not_in_file_ok(README => "The README is used..." => qr/The README is used/, "'version information here'" => qr/to provide version information/, ); not_in_file_ok(Changes => "placeholder date/time" => qr(Date/time) ); module_boilerplate_ok('lib/Net/DAVTalk.pm'); } Net-DAVTalk-0.25/t/PaxHeader/pod-coverage.t000644 000765 000024 00000000210 15154401720 020630 xustar00brongstaff000000 000000 30 mtime=1773274064.126021141 57 LIBARCHIVE.xattr.com.apple.provenance=AQIA7l1WdRyXcOQ 49 SCHILY.xattr.com.apple.provenance=î]Vu—pä Net-DAVTalk-0.25/t/pod-coverage.t000644 000765 000024 00000001113 15154401720 016662 0ustar00brongstaff000000 000000 #!perl -T use 5.006; use strict; use warnings FATAL => 'all'; use Test::More; # Ensure a recent version of Test::Pod::Coverage my $min_tpc = 1.08; eval "use Test::Pod::Coverage $min_tpc"; plan skip_all => "Test::Pod::Coverage $min_tpc required for testing POD coverage" if $@; # Test::Pod::Coverage doesn't require a minimum Pod::Coverage version, # but older versions don't recognize some common documentation styles my $min_pc = 0.18; eval "use Pod::Coverage $min_pc"; plan skip_all => "Pod::Coverage $min_pc required for testing POD coverage" if $@; all_pod_coverage_ok(); Net-DAVTalk-0.25/t/testdata/PaxHeader/unicode.xml000644 000765 000024 00000000210 15154401720 022051 xustar00brongstaff000000 000000 30 mtime=1773274064.126268268 57 LIBARCHIVE.xattr.com.apple.provenance=AQIA7l1WdRyXcOQ 49 SCHILY.xattr.com.apple.provenance=î]Vu—pä Net-DAVTalk-0.25/t/testdata/unicode.xml000644 000765 000024 00000000076 15154401720 020112 0ustar00brongstaff000000 000000 — Net-DAVTalk-0.25/t/testdata/PaxHeader/numeric.xml000644 000765 000024 00000000210 15154401720 022065 xustar00brongstaff000000 000000 30 mtime=1773274064.126202476 57 LIBARCHIVE.xattr.com.apple.provenance=AQIA7l1WdRyXcOQ 49 SCHILY.xattr.com.apple.provenance=î]Vu—pä Net-DAVTalk-0.25/t/testdata/numeric.xml000644 000765 000024 00000000106 15154401720 020120 0ustar00brongstaff000000 000000