Re: [fpc-pascal] TJSONRPCModule: access the request from an handler.

2022-09-09 Thread Michael Van Canneyt via fpc-pascal
On Fri, 9 Sep 2022, Luca Olivetti via fpc-pascal wrote: El 9/9/22 a les 15:50, Michael Van Canneyt ha escrit: The solution is much more simple. Override HandleRequest() in the module. Save the request in a variable and call inherited. Much simpler indeed! Thank you. In my case I just sav

Re: [fpc-pascal] TJSONRPCModule: access the request from an handler.

2022-09-09 Thread Luca Olivetti via fpc-pascal
El 9/9/22 a les 15:50, Michael Van Canneyt ha escrit: The solution is much more simple. Override HandleRequest() in the module. Save the request in a variable and call inherited. Much simpler indeed! Thank you. In my case I just save the remote address, but in your example below I suppose yo

Re: [fpc-pascal] TJSONRPCModule: access the request from an handler.

2022-09-09 Thread Michael Van Canneyt via fpc-pascal
On Fri, 9 Sep 2022, Luca Olivetti via fpc-pascal wrote: Hello, I added a "Web JSON-RPC Module" to my project, I dropped on it a TJSONPCHandler. I find no way to access the request (I want to check the RemoteAddress): 1) the module has a "Request" field but it is always nil (either in Da