<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style>
</head>
<body><div><br></div>
<div>Thanks a lot, Ken,<br></div>
<div><br></div>
<div>Both hints work perfectly :)<br></div>
<div><br></div>
<div>Regards,<br></div>
<div>Zhivko<br></div>
<div><br></div>
<div><br></div>
<div>On Tue, May 22, 2018, at 8:36 AM, Ken Murchison wrote:<br></div>
<blockquote type="cite"><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.<br></p><p>This request works fine on my laptop using the current Cyrus code
      from Git:<br></p><p><div>curl --verbose --http2 -X POST -H "Content-Type:
      application/json" -H "Accept: application/json" --user ken <br></div>
<div> -d
'{"using":["ietf:jmap","ietf:jmapmail"],"methodCalls":[["Mailbox/get",{"accountId":null,"ids":null},"#1"]]}' <a href="https://localhost/jmap">https://localhost/jmap</a><br></div>
<div> <br></div>
</p><div><br></div>
<div>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">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">http://</a>35.192.121.94<a href="https://my.ip.address:443/jmap">:443</a><a href="http://35.192.121.94/jmap">/jmap</a>"<br></div>
</blockquote><div><br></div>
<pre>-- 
Ken Murchison
Cyrus Development Team
FastMail US LLC<br></pre><p>Email had 1 attachment:<br></p><ul><li><div><code>murch.vcf</code><br></div>
<div>  1k (text/x-vcard)<br></div>
</li></ul></blockquote><div><br></div>
</body>
</html>