I use the component TWebHTTPRequest by insert its visual control in the Desing mode of the DataModule. Then i active the Event OnResponse and i program the code for manage the response of server.
Now i want to use this mechanism only with code.
I want create a funcion inside the code of DataModule that i can Create an instance of the TWebHTTPRequest, assign properties and execute it.
I can do without problem.
But i do not know how can i assign a OnResponse function to manage the response.
I see that in the Execute method of TWebHTTPRequest.Execute() i can send a parameter of type THTTPResponseProc but i do not know how can i use it.
Can you help me ?