<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>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.</p>
    <p>This request works fine on my laptop using the current Cyrus code
      from Git:<br>
    </p>
    <p>curl --verbose --http2 -X POST -H "Content-Type:
      application/json" -H "Accept: application/json" --user ken <br>
      -d
'{"using":["ietf:jmap","ietf:jmapmail"],"methodCalls":[["Mailbox/get",{"accountId":null,"ids":null},"#1"]]}'
      <a class="moz-txt-link-freetext" href="https://localhost/jmap">https://localhost/jmap</a><br>
      <br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 05/21/2018 01:47 PM, Zhivko Vasilev
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:1526924843.3690453.1379662568.7A97B3C7@webmail.messagingengine.com">
      <div>curl --verbose --http2 -X POST \<br>
      </div>
      <div>     -H "Content-Type: application/json" \<br>
      </div>
      <div>     -H "Accept: application/json" \<br>
      </div>
      <div>     --user <a href="mailto:u1@cyrus.mailtemi.com"
          moz-do-not-send="true">u1@cyrus.mailtemi.com</a>:q \<br>
      </div>
      <div>     -d '[["Mailbox/get", {},
        "#1"],"using":["jmap-core","jmap-mail"]]' \<br>
      </div>
      <div>     <a href="http://35.192.121.94/jmap"
          moz-do-not-send="true">http://</a>35.192.121.94<a
          href="https://my.ip.address:443/jmap" moz-do-not-send="true">:443</a><a
          href="http://35.192.121.94/jmap" moz-do-not-send="true">/jmap</a>"</div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Ken Murchison
Cyrus Development Team
FastMail US LLC</pre>
  </body>
</html>