How do I make a baseUrl mimic a curl with a host header destination in Postman?

As part of my testing I use a curl to a network device and I pass in a host header of a web server name. The network device proxies for this device so it receives the traffic and looks at the host header and forwards the traffic to the web server. How can I get this same functionality using Postman? Normally I go in and edit my local host file to force DNS when using postman but I would like to avoid that. Can post man make requests similar to that curl?

curl -ik https://network-appliance-ip -H "host:web-server-destination

I figured it out. Set the baseURL and the pre request scripts at the collection level.

Set the baseUrl variable first
the set the pre-request script

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.