General discussion on installation and configuration of SOGo

Text archives Help


Re: [SOGo] Uploading an addressbook with curl?


Chronological Thread 
  • From: Wolfgang Sourdeau < >
  • To:
  • Subject: Re: [SOGo] Uploading an addressbook with curl?
  • Date: Wed, 30 Mar 2011 15:53:59 -0400

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

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

sogo.log reports:

127.0.0.1 - - [30/Mar/2011:21:33:06 GMT] "POST /SOGo/dav/ /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...



Archive powered by MHonArc 2.6.18.

Top of page