[Lazarus] testing demorestbridge without a web server: is that possible?
following the suggestions offered by zeljiko (thank you, zeljko), I was able to compile and successfully run demorestbridge.exe Albeit no message is displayed when the EXE starts, I can see that the application is alive and answering requests at port 3000 (I use command >netstat -bano for this). The next step I'd like to reach is to run a client demo that will communicate with the server above. Demo bufclient compiles successfully At start time, I need to insert data into 3 boxes: 1. URL 2. username 3. password #2 and #3 are no problem, of course. #1 puzzles me. The box has the following string preset http://localhost:3000/ To my poor knwoledge, http requires a web server and I have no web server running in my PC with windows 7. Is there any way to do a quick test of demorestbridge.exe without installing a web server? Probably a stupid question... Thank you Peppe -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] testing demorestbridge without a web server: is that possible?
Le 25/10/2022 à 22:04, duilio foschi via lazarus a écrit : The box has the following string preset http://localhost:3000/ I think you can test directly by typing this url in your browser (running on the same pc than demorestbridge.exe of course) -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] testing demorestbridge without a web server: is that possible?
On Tue, 25 Oct 2022, duilio foschi via lazarus wrote: following the suggestions offered by zeljiko (thank you, zeljko), I was able to compile and successfully run demorestbridge.exe Albeit no message is displayed when the EXE starts, I can see that the application is alive and answering requests at port 3000 (I use command >netstat -bano for this). The next step I'd like to reach is to run a client demo that will communicate with the server above. Demo bufclient compiles successfully At start time, I need to insert data into 3 boxes: 1. URL 2. username 3. password #2 and #3 are no problem, of course. #1 puzzles me. The box has the following string preset http://localhost:3000/ To my poor knwoledge, http requires a web server and I have no web server running in my PC with windows 7. Is there any way to do a quick test of demorestbridge.exe without installing a web server? You don't need a webserver if you are using the demorestbridge. demorestbridge.exe itself acts as a webserver, it listens on port 3000. You can test this by typing the following in a browser address bar: http://localhost:3000/REST/metadata and you should get the metadata from the REST service. (you may need to provide the username and password you configured in the rest bridge) If that works, then in the bufclient demo, enter the URL http://localhost:3000/REST/ And push 'Get resource list' button to see a list of resources. Michael. -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus