General discussion on installation and configuration of SOGo

Text archives Help


Re: [SOGo] Uploading an addressbook with curl?


Chronological Thread 
  • From: Patrick Ben Koetter < >
  • To:
  • Subject: Re: [SOGo] Uploading an addressbook with curl?
  • Date: Wed, 30 Mar 2011 21:33:10 +0200

Hi Wolfgang,

* Wolfgang Sourdeau
< >:
> Le 11-03-30 15:12, Patrick Ben Koetter a écrit :
> >I need to import 50 adressbook in LDIF format and I thought I'd use curl
> >to do
> >a POST to the adressbook URL. But it seems (my naive interpretation) I get
> >the
> >URL wrong:
>
> The DAV addressbooks do not support LDIF importation. You need to
> use the web interface for this or to create a script that will
> translate the LDIF entries to vcards...

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?

TIA,

p@rick

--
state of mind
Digitale Kommunikation

http://www.state-of-mind.de

Franziskanerstraße 15 Telefon +49 89 3090 4664
81669 München Telefax +49 89 3090 4666

Amtsgericht München Partnerschaftsregister PR 563




Archive powered by MHonArc 2.6.18.

Top of page