While doing initial sync with Google's CardDav server I am doing a REPORT request with sync-collection method. In this request I am passing empty sync-token since its the initial sync. This is as per RFC 6578 (https://www.rfc-editor.org/rfc/rfc6578#section-3.8).
The request body looks like this:
<?xml version="1.0" ?>
<D:sync-collection xmlns:D="DAV:">
<D:sync-token/>
<D:prop>
<D:getetag/>
</D:prop>
</D:sync-collection>
I am expecting a Multi-Status response with etag's of all contacts. However, google is returning HTTP error 400.
Can anybody if I am doing anything wrong?