0

I want to get the vCards that exist for an account. The server is google.com and I know the username/password. What I dont know is what the correct base url is. Doing a PROPFIND on google.com yields service not available. I had a similar problem with the icloud CardDAV (which I hacked by hardcoding the full address) which leads me to believe that there must be a proper way to discover the base url. Searching the RFC's i could not find it though. Furthermore, CardDAV apps seem to be able to find the data without any problem. Anyone have any ideas?

chacham15
  • 13,719
  • 26
  • 104
  • 207

2 Answers2

1

Use https://google.com/.well-known/carddav as a starting point. This should work for iCloud as well.

Evert
  • 93,428
  • 18
  • 118
  • 189
-1

I tried to use this github projet (for .NET). The README tells us to use this url (with a proper username) : https://google.com/m8/carddav/principals/__uids__/username@gmail.com/lists/

But I didn't achive to see my contacts or create new ones with this code, google just respond HTML 200 OK or 400 Bad Request.

This article indicate : https://google.com/m8/carddav/principals/__uids__/username@gmail.com/lists/default/

You can find the results of our research here. But some sources says that the CardDAV URL of google is no longer available.

Max
  • 1,810
  • 3
  • 26
  • 37