Question

5
Replies
2512
Views
X
sasi_chow Member since 2009 5 posts
Cognizant Technology Solutions
Posted: 4 years ago
Last activity: 3 years 6 months ago
Closed
Solved

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***

System Administration
Moderation Team has archived post
Share this page LinkedIn