<div dir="ltr">Hi guys,<div><br></div><div><div>I'm trying to implement a simple server that responds to calls JSON (JSON RPC). I'm using this tutorial <a href="http://www.freepascal.org/~michael/articles/webserver1/webserver1.pdf">http://www.freepascal.org/~michael/articles/webserver1/webserver1.pdf</a> </div>
<div><br></div><div>Works well, but does not recognize POST methods sent as JSON, only recognizes when sending HTTP forms.</div><div><br></div><div>When I try to send a JSON call, the server receives an OPTION method.</div>
<div><br></div><div>In lazarus projects wizards and brook framework wizards work fine, with the actions and same JSON call.</div><div><br></div><div>I use ajax with json dataType and contentType application/json.<br><br>
</div>
<div>I need charge contents types on server? I need to implement something more? What could be wrong?<br></div><div><br></div><div>Thanks</div><div><br></div><div>Best regards</div><div><div dir="ltr"><div style="font-size:small;font-family:arial">
<br>José Benedito</div><div style="font-size:small;font-family:arial">JBS Soluções<br>Consulting Systems Development<br><a href="mailto:josebenedito@gmail.com" style="color:rgb(17,85,204)" target="_blank">c</a><a href="mailto:ontato@jbsolucoes.net" style="color:rgb(17,85,204)" target="_blank">ontato@jbsolucoes.net</a><br>
<div><div><a href="http://www.jbsolucoes.net/" style="color:rgb(17,85,204)" target="_blank">www.jbsolucoes.net</a></div><div><br>skype: <a href="mailto:sac@jbsolucoes.net" style="color:rgb(17,85,204)" target="_blank">sac@jbsolucoes.net</a><br>
</div></div></div></div></div>
</div></div>