Results 1 to 2 of 2

Thread: [SOLVED] Trying to add Calendar entry via curl/rest

  1. #1
    Join Date
    Dec 2008
    Posts
    25
    Rep Power
    6

    Default [SOLVED] Trying to add Calendar entry via curl/rest

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

  2. #2
    Join Date
    Dec 2008
    Posts
    25
    Rep Power
    6

    Default

    And that quick i solved my own problem......

    the proper format is here:

    Code:
    curl -v -u steveg@ZZZ.com:PASSWORD --upload-file DHI.ics https://zimbra.YYY.net/home/steveg@ZZZ.com/calendar?fmt=ics

Similar Threads

  1. Documents fail to initialize
    By dgcarter in forum Installation
    Replies: 9
    Last Post: 12-17-2007, 11:44 PM
  2. Is it started or not
    By kwelipatton in forum Installation
    Replies: 10
    Last Post: 03-28-2006, 10:11 PM
  3. Replies: 13
    Last Post: 10-31-2005, 03:22 PM
  4. Replies: 18
    Last Post: 10-30-2005, 08:12 PM
  5. Certify Error on (re)install
    By rodrigoccurvo in forum Installation
    Replies: 4
    Last Post: 09-23-2005, 09:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •