Question

3
Replies
2057
Views
_MadhuChalamaiah Member since 2013 11 posts
Rules cube
Posted: 3 years ago
Last activity: 3 years 2 months ago
Closed
Solved

POST Request Headers for REST Service Pega 7.1.7 not Available/Overrided?

Hi,

My Application is an headless application, so have UI built on other technologies and built REST service in Pega to start the automated bussiness process. I have a Service REST for processing request from UI.
Request Header for all service calls from UI are having below information. Requirement is to capture all client header informtion, however all those headers are getting overrided when parsing the request in Pega.

From UI:

Host:"XXX.XX.XX.XX"
User-Agent:"Mozilla/5.0 ..."
Accept:"*/*"
Accept-Language:"en-GB,en;q=0.5"
Accept-Encoding:"gzip, deflate"
Referer:"http://XXX.XX.XX.XX/XXXXXXXXXXX&SOURCE=aaaaP&TID=aaaa&c=e"
Content-Type:"application/json"
X-Requested-With:"XMLHttpRequest"
Content-Length:"XXXX"

In Pega:

Mapped all required headers in REST Service >> Methods >> POST request headers. And all headers are getting overided in Pega and few are not available.
ex: host is being replaced by Pega host name and user-agent is being replaced by somthing else.

Pega: 7.1.7
Rest Service with basic authentication
Service Package: Stateless

Does anyone faced this issue?

Data Integration
Moderation Team has archived post
Share this page LinkedIn