Question

5
Replies
2601
Views
Close popover
Sasikumar ananthaneni (sasi_chow)
Cognizant Technology Solutions
Sr. Architect
Cognizant Technology Solutions
US
sasi_chow Member since 2009 5 posts
Cognizant Technology Solutions
Posted: November 4, 2015
Last activity: December 22, 2016
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