* Wolfgang Sourdeau <[email protected]>:
> >>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...

Thanks. Just had figured that out when I read our post. Additionally I had to
send a valid User-Agent, since SOGo would refuse to accept curl as valid client.

This is where I currently stand, but still fail:

curl -H "Content-Type: text/x-vcard" -A "Mozilla/5.0" \
  -X POST -u "[email protected]" -v -w content_type \
  -d @abook.vcf 
https://mail.state-of-mind.de/SOGo/dav/[email protected]/Contacts/personal/

The communication goes like this (> is the client, < is the server):

> User-Agent: Mozilla/5.0
> Host: mail.state-of-mind.de
> Accept: */*
> Content-Type: text/x-vcard
> Content-Length: 328
> 
< HTTP/1.1 500 Request failed
< Date: Wed, 30 Mar 2011 20:28:31 GMT
< content-length: 36
< Via: 1.1 mail.state-of-mind.de
< Connection: close
< Content-Type: text/plain
< 
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
the called object returned no result


The server still reports:

127.0.0.1 - - [30/Mar/2011:22:17:02 GMT] "POST 
/SOGo/dav/[email protected]/Contacts/personal/ HTTP/1.1" 500 36/328 0.023 - 
- 0

The URL is correct, yes?

If it is I don't see what I could change right now. Anything I can to do
increase log verbosity on the server (sogo) side?

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

-- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to