I found a script that converts LDIF to vCard and created a vcard file, but my
curl call fails:

curl -X POST -u [email protected] -v -d @adressbook.vcf https://mail.example.com/SOGo/dav/[email protected]/Contacts/personal/

sogo.log reports:

127.0.0.1 - - [30/Mar/2011:21:33:06 GMT] "POST /SOGo/dav/[email protected]/Contacts/personal/ HTTP/1.1" 500 36/347 0.023 - - 0

Wrong ressource?


Ah. Maybe it's because it does not specify a "content-type". If you can specify it, the right value would be "text/x-vcard".



I guess you could use -H "Content-Type: text/x-vcard" as cmdline parameters...
--
[email protected]
https://inverse.ca/sogo/lists

Reply via email to