POST Request Headers for REST Service Pega 7.1.7 not Available/Overrided?
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.
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.
Rest Service with basic authentication
Service Package: Stateless
The Host header is the destination host. It must be set by all HTTP clients, and the Pega server is hosting the service, so this would be the expected value sent by a client that was calling the service on Pega. The client that is making the connection to the Service sets this, not Pega.
What are you trying to capture from the Host header?
"user-agent is being replaced by something else"
The User-Agent header is being set by the client and Pega would not be changing this. Perhaps the request is going through some HTTP proxy which issues the request on the client's behalf, and the User-Agent header would then be that of the "real" client?