Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create card baikal server #23

Open
daimaire opened this issue Apr 27, 2014 · 2 comments
Open

Can't create card baikal server #23

daimaire opened this issue Apr 27, 2014 · 2 comments

Comments

@daimaire
Copy link

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:[email protected] 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 ?

@th23x
Copy link

th23x commented Dec 8, 2020

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

@FischFischer
Copy link

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:[email protected]
  END:VCARD';

$carddav = new carddav_backend($url_carddav);
 $carddav->set_auth($user_carddav , $passwort_carddav);
$vcard_id = $carddav->add($vcard);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants