[SOLVED] Brook,JSON,MySQL lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- aradeonas · 2014-05-26 09:55 hi im a beginer in brook and i need a simple demo that use Brook framework and connect to mysql and get data in JSON fromat. brook examples use postgresql and i dont know it. any one done it before? thanks ---------------------------------------------------------------------- Leledumbo · 2014-05-26 10:36 It's just a matter of changing the database properties, everything else should be the same. ---------------------------------------------------------------------- aradeonas · 2014-05-26 14:04 I'm done it but it says "HTTP method not allowed for the requested resource. " this demo and upload demos in simple folder show that error. i found http://lists.lazarus.freepascal.org/pipermail/lazarus/2014- February/086014.html but it does not help. ? ---------------------------------------------------------------------- Leledumbo · 2014-05-27 16:45 this is the simplest that I can create that fulfills mysql(-55) connection & json response. simply run and request /person/get/1 or /person/get/2. Any other id shall give empty name, but no error. don't forget to change database properties & port + root url settings (if required). ---------------------------------------------------------------------- aradeonas · 2014-05-29 13:13 thank Leledumbo very much it is what i want,a simple demo!