11-06-2019, 02:12 PM
Hi, you have information you can handle like this:
uses
IW.HTTP.Request
uses
IW.HTTP.Request
Code:
procedure TIWServerController.IWServerControllerBaseNewSession(aSession: TIWApplication);
begin
ASession.Data := TIWUserSession.Create(nil, aSession);
{ Use ASession.Request to obtain a lot of information }
if ASession.Request.HttpMethod = hmNone then begin
ASession.Response.Code := 405;
ASession.Response.CodeText := 'Not Allowed';
ASession.Terminate;
end;
end;