micbasov Posted April 23, 2013 Share Posted April 23, 2013 Hi Farhad! How to processing the URL address of the server without displaying the main form of application? For example: http://127.0.0.1/ DataSnapQuery?parameter=1 How to return the response using UniSession.SendResponse? In ExtPascal solves this problem by creating a new procedure published in classes inherited from TExtThread: TAppThread = class(TExtThread) procedure AfterConstruction; override; procedure BeforeDestruction; override; published procedure Home; override; procedure DataSnapQuery; procedure DataSnapGetParams; procedure GetObjectData; end; Is it possible to add an event to OnUserClientEvent in TUniGUIMainModule that will be triggered for example when requesting http://127.0.0.1/UserEvent?parameter=1 ? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 27, 2013 Administrators Share Posted April 27, 2013 What kind of response will it return? Quote Link to comment Share on other sites More sharing options...
micbasov Posted April 28, 2013 Author Share Posted April 28, 2013 XML, JSON Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 28, 2013 Administrators Share Posted April 28, 2013 Please add a Feature Request so we can review it. Quote Link to comment Share on other sites More sharing options...
micbasov Posted April 29, 2013 Author Share Posted April 29, 2013 Thank you for your answer! I'll add this request. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.