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

Giuseppe glpunzi at gmail.com
Wed Feb 26 10:31:39 CET 2014


El 26/02/2014 4:57, silvioprog escribió:
> 2014-02-25 18:22 GMT-03:00 Giuseppe <glpunzi at gmail.com 
> <mailto:glpunzi at gmail.com>>:
>
>     Hi all,
>
>     I'm trying demos on Brook 3 (from github), and simple demos works
>     fine, but with DB demos I get the error:
>     Error 405
>     HTTP method not allowed for the requested resource.
>
>     Some idea?
>
>     Regards.
>
>
> Oh, is you Giu of Lazarus forum? Sorry, I could only see it now hehe...
>
> Please delete all old files, like .ppu etc. These examples are working 
> fine, I tested it on Windows and Linux.
>
> If problem persists, please say step by step how you are doing the 
> test as well as your environment.
>

Yes, I am.
Lazarus 1.2RC2, FPC 2.6.2 rev.43696, 32 bits.
brookframework downloaded from github.
Opened brookex and brookrt lpk and compiled.
dopf downloaded from github, opened and compiled.

Open brookframework\demos\simple\helloworld\cgi project
Build.
Copy to cgi-bin folder
http://localhost:8080/cgi-bin/cgi1.bf returns Hello World!

Open brookframework\demos\simple\static project
Build.
Execute test.exe
http://localhost:8000/index returns static page opening a dialog as 
expected.

Open \brookframework\demos\simple\entity project
Build.
Copy to cg1.bf to cgi-bin folder
http://localhost:8080/cgi-bin/cgi1.bf returns "HTTP method not allowed 
for the requested resource."


Created postgres database with table person.
Open brookframework/demos/db/dopf/cgi1.lpi
Changed db configuration from dbutils.pas pointing to my database
Copied all postgres dll from postgres/bin folder to project folder.
Changed on Brokers.pas BrookFCLCGIBroker -> BrookFCLHttpAppBroker
http://localhost returns "HTTP method not allowed for the requested 
resource."

Shell:
D:\DevAux\LazComp\brookframework\demos\db\dopf>cgi1.exe
exception at 0043A79E:
Missing HTTP protocol version in request.










-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140226/b4c55705/attachment-0003.html>


More information about the Lazarus mailing list