Re: [Lazarus] testing demorestbridge without a web server: is that possible?

2022-10-27 Thread duilio foschi via lazarus
I tried to run demorestbridge inside Lazarus in debug mode. When the web browser points to http://localhost:3000/REST/metadata the debugger shows an error message that says: 'project SQLDB REST bridge raised an exception of class 'EHTTP' with message: No REQUEST_METHOD passed from server.. At ad

Re: [Lazarus] testing demorestbridge without a web server: is that possible?

2022-10-27 Thread zeljko via lazarus
On 27. 10. 2022. 19:03, duilio foschi via lazarus wrote: I tried to run demorestbridge inside Lazarus in debug mode. When the web browser points to http://localhost:3000/REST/metadata the debugger shows an error message that says: 'project SQLDB REST bridge raised an exception of class 'EHT

Re: [Lazarus] testing demorestbridge without a web server: is that possible?

2022-10-27 Thread duilio foschi via lazarus
Dear Zeljko, >If this results in error 400-40xx this is exactly what happens :) c:\>curl -u Detlef:secret -H "Content-Type: application/json" "http://localhost:3000/REST/metadata"; { "error" : { "code" : 404, "message" : "NOT FOUND" } } >then you must include connection after RES

Re: [Lazarus] testing demorestbridge without a web server: is that possible?

2022-10-27 Thread zeljko via lazarus
On 27. 10. 2022. 20:29, duilio foschi wrote: Dear Zeljko, If this results in error 400-40xx this is exactly what happens :) c:\>curl -u Detlef:secret -H "Content-Type: application/json" "http://localhost:3000/REST/metadata"; { "error" : { "code" : 404, "message" : "NOT FOUN