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

How to retrieve the hostname used in the request ?

We need your assistance in retrieving the hostname value in the API proxy.


We notice that Host is fetched in the trace when API call is made as part of the Request Headers

... 
Host myhost.domain.com
...
	

However, when I try to read the value of the variable "request.header.host" I get the value as mocktarget.apigee.net instead of myhost.domain.com.

0 2 3,299
2 REPLIES 2