CARDDAV:addressbook-multiget, Re: [Ietf-carddav] More comments on
draft-daboo-carddav-02
Julian Reschke
julian.reschke at gmx.de
Sun Jul 15 06:38:34 PDT 2007
Hi,
here are two changes that I would propose for
CARDDAV:addressbook-multiget
(<http://tools.ietf.org/html/draft-daboo-carddav-02#section-8.7>):
1) Elevate C:addressbook-data from a pseudo property to a regular
element of the request/response format,
2) Augment the request with information that allows conditional retrieval.
Example:
Request:
<?xml version="1.0" encoding="utf-8" ?>
<C:addressbook-multiget xmlns:D="DAV:"
xmlns:C="urn:ietf:params:xml:ns:carddav">
<C:addressbook-data>
</C:if-none-match>
<C:prop name="VERSION"/>
<C:prop name="UID"/>
<C:prop name="NICKNAME"/>
<C:prop name="EMAIL"/>
<C:prop name="FN"/>
</C:addressbook-data>
<D:href if-none-match='"23ba4d-ff11fb"'
>/home/bernard/addressbook/vcf102.vcf</D:href>
<D:href>/home/bernard/addressbook/vcf1.vcf</D:href>
</C:addressbook-multiget>
Response:
HTTP/1.1 207 Multi-Status
Date: Sat, 11 Nov 2006 09:32:12 GMT
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx
<?xml version="1.0" encoding="utf-8" ?>
<D:multistatus xmlns:D="DAV:"
xmlns:C="urn:ietf:params:xml:ns:carddav">
<D:response>
<D:href>/home/bernard/addressbook/vcf102.vcf</D:href>
<D:status>HTTP/1.1 304 Not Modified</D:status>
</D:response>
<D:response>
<D:href>/home/bernard/addressbook/vcf1.vcf</D:href>
<D:status>HTTP/1.1 404 Resource not found</D:status>
</D:response>
</D:multistatus>
Best regards, Julian
More information about the Ietf-carddav
mailing list