Open daimaire opened 10 years ago
It's most likely outdated to give your an answer, but in case others like myself come across the issue...a fellow user has provided a fix, that works for me and proposed this simple change: https://github.com/christian-putzke/CardDAV-PHP/pull/26
I tried the fix you mentioned, but i can only get a 415 as a response from the Server (Baikal 0.9.1)
$vcard = 'BEGIN:VCARD
VERSION:3.0
UID:1f5ea45f-b28a-4b96-25as-ed4f10edf57b
FN:Christian Putzke
N:Christian;Putzke;;;
EMAIL;TYPE=OTHER:christian.putzke@graviox.de
END:VCARD';
$carddav = new carddav_backend($url_carddav);
$carddav->set_auth($user_carddav , $passwort_carddav);
$vcard_id = $carddav->add($vcard);
Baikal server 0.2.7. Every functions work except $carddav->add($vcard) and $carddav->update($vcard, '[UID]');
trying to create: $vcard= 'BEGIN:VCARD VERSION:3.0 N:Christian;Putzke;;; FN:Christian Putzke EMAIL;type=INTERNET;type=OTHER:christian.putzke@graviox.de END:VCARD'; $carddav = new carddav_backend('https://davical.example.com/user/contacts/'); $carddav->set_auth('username', 'password'); $vcard_id = $carddav->add($vcard);
Answer: Fatal error: Uncaught exception 'Exception' with message 'Woops, something's gone wrong! The CardDAV server returned the http status code 415.'
Any idea ?