You're getting a 301 because the JMAP endpoint is actually /jmap/ and not /jmap (note the trailing '/').  I'm not sure why our implementation requires this.  That would be a question for Robert S.

This request works fine on my laptop using the current Cyrus code from Git:

curl --verbose --http2 -X POST -H "Content-Type: application/json" -H "Accept: application/json" --user ken -d '{"using":["ietf:jmap","ietf:jmapmail"],"methodCalls":[["Mailbox/get",{"accountId":null,"ids":null},"#1"]]}' https://localhost/jmap


On 05/21/2018 01:47 PM, Zhivko Vasilev wrote:
curl --verbose --http2 -X POST \
     -H "Content-Type: application/json" \
     -H "Accept: application/json" \
     --user u...@cyrus.mailtemi.com <mailto:u...@cyrus.mailtemi.com>:q \
     -d '[["Mailbox/get", {}, "#1"],"using":["jmap-core","jmap-mail"]]' \
http:// <http://35.192.121.94/jmap>35.192.121.94:443 <https://my.ip.address:443/jmap>/jmap <http://35.192.121.94/jmap>"

--
Ken Murchison
Cyrus Development Team
FastMail US LLC

<<attachment: murch.vcf>>

Reply via email to