christian-putzke / CardDAV-PHP

A cardDAV PHP-Class
http://www.graviox.de/
GNU Affero General Public License v3.0
97 stars 47 forks source link

iCloud compatible #15

Open kjones1876 opened 12 years ago

kjones1876 commented 12 years ago

Replace

    curl_setopt($c, CURLOPT_HTTPAUTH, CURLAUTH_ANY);

to curl_setopt($c, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);

To make it iCloud compatible, this should be in the notes somewhere.

MaZderMind commented 11 years ago

Hi kizzie33,

can you give some information about which url you used to connect to icloud?

Thank you! Peter

adamoc commented 10 years ago

Thanks @kizzie33 - this worked for ownCloud as well.

JosephP91 commented 9 years ago

I have the same problem with iCloud. I use contacts.icloud.com as url and my @icloud.com to authenticate, but server returns 403.

rashnk commented 8 years ago

Wher is @kizzie33 's solution , i cant find here ??

kjones1876 commented 8 years ago

@rashnk curl_setopt($c, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); was my fix. However that was a fix 4 years ago, so many not work anymore...

rashnk commented 8 years ago

hi, im getting the response as below Array ( [response] => /1015fd8757/carddavhome/ /10159028767/carddavhome/card/62BB0C5A-7DAA-4E69-A159-C7DE81752ABE.vcf "C=0@U=6d2b4072-9b55-45b5-b7aa-844a5fe2d7b1" 0 Wed, 10 Feb 2016 05:47:14 GMT 2016-02-08T10:13:37Z FT=-@RU=6d2b4072-9b55-45b5-b7aa-844a5fe2d7b1@S=6 HTTP/1.1 200 OK [http_code] => 207 )

the contacts data is not printed, but with owncloud it works well