Question
Not able to read HTTP Header information
Hi,
I am working on POC to read HTTP header information from pega.
Requirement: From external application Pega app link will be clicked, while posting this request to app server, also includes userid in header of this request.
Once auth service got called, reading the headers through
"
@java("((javax.servlet.http.HttpServletRequest)tools.getRequestor().getRequestorPage().getObject(\"pxHTTPServletRequest\")).getHeader(\"<VALUE TO READ>\")") .
Put this in a Property-Step step. For example: Param.myParam = @java("((javax.servlet.http.HttpServletRequest)tools.getRequestor().getRequestorPage().getObject(\"pxHTTPServletRequest\")).getHeader(\"<VALUE TO READ>\")")
Result: its failing to read.
***Updated by Moderator: Marissa to update categories***