[Lazarus] [Brook] HTTP method not allowed for the requested resource

Giuseppe glpunzi at gmail.com
Wed Feb 26 17:27:53 CET 2014


> Exactly how Canneyt said: It is a known bug in FPC 2.6.2.
>
> RESTful uses all HTTP methods (GET/POST/PUT/DELETE), and old FCL-web 
> does not supports it, but it is fixed in new FCL-web.
>
> Try it now in a new environment, I'll show my environment to you:
>
> 0. use a stable release of Lazarus/FPC: Lazarus 1.0.14 r43446 FPC 
> 2.6.2 i386-win32-win32/win64 (http://sourceforge.net/projects/lazarus);
> 1. install Apache server in your system 
> (http://archive.apache.org/dist/httpd/binaries/win32/httpd-2.2.22-win32-x86-openssl-0.9.8t.msi), 
> choosing the "c:\websrv" folder instead of default Apache folder in 
> "Program Files", after install, you will have the "c:\websrv\cgi-bin" 
> folder;
> 2. undo all changes in your Brook demos (in SmartGIT, I select all 
> files and use "Revert" button), and keep using BrookFCLCGIBroker 
> instead of BrookFCLHTTPAppBroker broker that you changed;
> 3. install the best browser in your system: Google Chrome;
> 4. install a complete REST client plugin in your Chrome: 
> https://chrome.google.com/webstore/detail/advanced-rest-client/hgmloofddffdnphfgcellkdfbfbjeloo;
> 5. with your database and "person" table already created, open the 
> project "C:\repository\git\brookframework\demos\db\rest\cgi1.lpi" and, 
> in your project options (Ctrl+Shift+F11), set 
> "c:\websrv\cgi-bin\cgi1.bf <http://cgi1.bf>" in "Compiler Options > 
> Paths > Target file name", and uncheck the "Apply conventions" option;
> 6. compile your project (Ctrl+F9);
> 7. configure your REST plugin to: http://imagebin.org/295955;
> 8. enjoy;
Yes this works.

Then, to build dinamic sites like Anderson do in his videos, I have to 
wait to 2.6.4 to get Brook working again as before. True? Meanwhile, I 
can use it "just" as REST server.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140226/dd1ad507/attachment-0003.html>


More information about the Lazarus mailing list