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 [email protected] -d @adressbook.ldif https://mail.example.com/SOGo/dav/[email protected]/Contacts/personal/ Enter host password for user '[email protected]': * 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 '[email protected]' > POST /SOGo/dav/[email protected]/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 -- [email protected] https://inverse.ca/sogo/lists
