General discussion on installation and configuration of SOGo

Text archives Help


[SOGo] Uploading an addressbook with curl?


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

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:

% curl -v -X POST -u

-d @adressbook.ldif
https://mail.example.com/SOGo/dav/ /Contacts/personal/
Enter host password for user
' ':
* About to connect() to mail.example.com port 443 (#0)
* Trying 194.126.158.26... connected
* Connected to mail.example.com (194.126.158.26) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using DHE-RSA-AES256-SHA

...

* SSL certificate verify ok.
* Server auth using Basic with user
' '
> POST
> /SOGo/dav/ /Contacts/personal/
> HTTP/1.1
> Authorization: Basic dGVzdEBzdGF0ZS1vZi1taW5kLmRlOnQzc3Qhbmc=
> User-Agent: curl/7.19.7 (i486-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k
> zlib/1.2.3.3 libidn/1.15
> Host: mail.example.com
> Accept: */*
> Content-Length: 31468
> Content-Type: application/x-www-form-urlencoded
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
< HTTP/1.1 500 Request failed
< Date: Wed, 30 Mar 2011 19:06:43 GMT
< content-length: 36
< Via: 1.1 mail.example.com
< Connection: close
< Content-Type: text/plain
<
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):

Is it the URL?

Any hint toward the right direction greatly apprechiated.

p@


--
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