Closed
Hi, I need to print HTTP Trace to Pega logs, I am on Pega 7.1.7. Is there any Hot fix available? Customer uses LDAP to login.
Hi,
Greetings. I need to print HTTP Trace to Pega logs, I am on Pega 7.1.7. Is there any Hot fix available? Customer uses LDAP to login.
Regards,
Bharat
Message was edited by: Lochan to add Category
Hello Srinivas,
What do you mean by hotfix for printing HTTP Trace?
You need to add some code to print the HTTP Trace in your authentication activity. Try with below code in a java step and it will log out the HTTP parameters.
javax.servlet.http.HttpServletRequest req = (javax.servlet.http.HttpServletRequest)tools.getRequestor().getRequestorPage().getObject("pxHTTPServletRequest");
java.util.Enumeration<String> headerNames = req.getHeaderNames();
while (headerNames.hasMoreElements()) {
String headerName = headerNames.nextElement();
oLog.infoForced("Header: "+headerName);
java.util.Enumeration<String> headers = req.getHeaders(headerName);
while (headers.hasMoreElements()) {
String headerValue = headers.nextElement();
oLog.infoForced("Value: " + headerValue);
}
}
Hope this helps.
Amit