I fully admit I'm no curl/rest expert.. but after examining several (but not many) examples I'm hoping someone can tell me what I'm doing wrong... or if this is even possible...
Ultimately I hope to make this call via PHP to automatically add entries to a Zimbra calendar from an external webapp.. but want to make sure I have the format and understanding of the call down... which.. obviously.. I don't' right now....
I've see some examples using port 7070, but that is not even alive on my server...
Thanx..
Zimbra 7.1.0_GA_3140
Code:
:~$ curl -v -u steveg@ZZZ.com:PASSWORD --upload-file DHI.ics https://zimbra.YYY.net/service/steveg@ZZZ.com/calendar?fmt=ics
* About to connect() to zimbra.YYY.net port 443 (#0)
* Trying 1.2.3.4... connected
* Connected to zimbra.YYY.net (1.2.3.4) 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
* Server certificate:
* subject: O=zimbra.YYY.net; OU=Domain Control Validated; CN=zimbra.YYY.net
* start date: 2011-01-09 03:41:02 GMT
* expire date: 2013-01-15 03:31:28 GMT
* subjectAltName: zimbra.YYY.net matched
* issuer: C=US; ST=Arizona; L=Scottsdale; O=GoDaddy.com, Inc.; OU=http://certificates.godaddy.com/repository; CN=Go Daddy Secure Certification Authority; serialNumber=07969287
* SSL certificate verify ok.
* Server auth using Basic with user 'steveg@ZZZ.com'
> PUT /service/steveg@ZZZ.com/calendar?fmt=ics HTTP/1.1
> Authorization: Basic c3RldmVnQGluY2x1ZGZZZW0uY29tOk10QWlyeTEyMDIz
> User-Agent: curl/7.21.0 (i686-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18
> Host: zimbra.YYY.net
> Accept: */*
> Content-Length: 805
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
< HTTP/1.1 405 HTTP method PUT is not supported by this URL
< Date: Wed, 20 Apr 2011 15:12:46 GMT
< Content-Length: 0
<
* Connection #0 to host zimbra.YYY.net left intact
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):