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

Giuseppe glpunzi at gmail.com
Thu Feb 27 08:53:01 CET 2014


> I don't know if our environment is similar to reproduce it. My environment is:
> 
> Windows 8, 64 bit.
> Lazarus 1.0.14 r43446 FPC 2.6.2 i386-win32-win32/win64.
> Brook via trunk.
> PostgreSQL 8.4, 32 bit.
> Apache/2.2.22 (Win32), Server built:   Jan 28 2012 11:16:39.
> 
> Are you executing the demo using correct Url/HTTP request methods?

It's similar, just Laz version different. As I mentioned on previous mail...

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!
This works....

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

/////
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."
Didn't worked (with BrookFCLCGIBroker, either with BrookFCLHttpAppBroker)

//////
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.
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.

Didn't worked (with BrookFCLCGIBroker, either with BrookFCLHttpAppBroker)

//////
Open brookframework\demos\db\rest project
Build.
Copy to rest.bf to cgi-bin folder
http://localhost:8080/cgi-bin/rest.bf returns data as expected. 
Works from advanced rest client on chrome too
This works as embbebed too AFAIR.

Regards.


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


More information about the Lazarus mailing list