You probably need to enable some things in your config! At least this one:
httpmodules: jmap Cheers, Bron. On Wed, Dec 22, 2021, at 22:56, Bruno Thomas via Devel wrote: > Hi all, > > > I'm testing jmap on on cyrus 3.4.2 compiled with the options : > > ./configure --enable-calalarmd --enable-autocreate --enable-nntp > --enable-http --enable-jmap --with-pgsql --with-openssl=yes --enable-idled > --with-pgsql-incdir=/usr/include/postgresql --enable-xapian > --with-sphinx-build=no > > I can auth with PAM/SASL > > $ sudo testsaslauthd -f /var/run/saslauthd/mux -u m...@iroco.io > <mailto:br...@iroco.io> -p pass -s http > 0: OK "Success." > > I can auth with imtest : > > $ imtest -p 143 -m plain -u m...@iroco.io <mailto:br...@iroco.io> -a > br...@iroco.io -w pass localhost > > Caldav/Carddav are also working with curl. > > But when I try to curl JMAP with the following request (from > https://wikisuite.org/Cyrus-IMAP-3-and-JMAP-development#JMAP_webmail) > > $ curl -i -X POST -H "Content-Type: application/json" -H "Accept: > application/json" --user m...@iroco.io <mailto:br...@iroco.io>:pass -d > '[["getCalendars", {}, "#1"]]' http://localhost:8080/jmap/ > HTTP/1.1 405 Method Not Allowed > Date: Wed, 22 Dec 2021 11:50:49 GMT > Connection: Upgrade > Upgrade: h2c > Vary: Accept-Encoding > Allow: OPTIONS, GET, HEAD > Content-Type: text/html; charset=utf-8 > Content-Length: 488 > ... > > when I try to use method GET as said in the Allow headers I have > HTTP/1.1 415 Unsupported Media Type > > Do you know how I could test that JMAP is correctly compiled (a service URL > to check it is here) ? > And do you know why I have this method not allowed ? > > Thanks for your help. > > Bruno Thomas > > *Cyrus <https://cyrus.topicbox.com/latest>* / Devel / see discussions > <https://cyrus.topicbox.com/groups/devel> + participants > <https://cyrus.topicbox.com/groups/devel/members> + delivery options > <https://cyrus.topicbox.com/groups/devel/subscription> Permalink > <https://cyrus.topicbox.com/groups/devel/Tc0491840a1219fe9-M51bac1a1aa4894fbf5b0269f> -- Bron Gondwana, CEO, Fastmail Pty Ltd br...@fastmailteam.com ------------------------------------------ Cyrus: Devel Permalink: https://cyrus.topicbox.com/groups/devel/Tc0491840a1219fe9-M5d14a97ea842c16a7c03ea7d Delivery options: https://cyrus.topicbox.com/groups/devel/subscription