Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to get Request host in target response flow

Currently on OPDK we are capturing request host in target response flow for logging purpose using variable virtualhost.aliases.values

As we don't have same variable in hybrid, how we can get the request host without altering any code.
Is there any direct variable we can use in target response flow to capture request host?
i tried using 

request.header.Host

request.hostname
proxy.request.url.host
X-Original-Hostname

We know one of the solution is capture that host in request flow and use that later.  As we migrate we don't want to alter any code. So looking for any direct way we can achieve this using variables

 

0 4 209
4 REPLIES 4

Hi @maheshapi052, Iโ€™ve seen that your question hasnโ€™t gotten a response yet. Weโ€™ll keep checking in on this thread and encourage other members to share their thoughts.

@maheshapi052 

Is request.header.host not working?

@ssvaidyanathan @no its not working

@maheshapi052 - are you not seeing it in Debug? Can you confirm its being sent?