Yes, there is such method.
%CSP.Request has method "GetCgiEnv" that you can use like this:
ClassMethod YourMethod(request As%CSP.Request) As%Status
{
Set userAgent = request.GetCgiEnv("HTTP_USER_AGENT")
Set IPAddress = request.GetCgiEnv("REMOTE_ADDR")
Set messageFormat= request.GetCgiEnv("CONTENT_TYPE")
return$$$OK
}All possible data that you can get from GetCgiEnv you can look here: Cgi Data
- Log in to post comments