From the course: Introducing Postman

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Manage request headers

Manage request headers - Postman Tutorial

From the course: Introducing Postman

Start my 1-month free trial

Manage request headers

- [Instructor] Many sites and API's respond differently based on the various headers provided with the request. Sometimes, they care about the User Agent string, other times they format their responses based on the Accept Header. Plenty of sites even manage access to content through the Authorization Header. Our sample API makes limited use of each of these scenarios, so let's use Postman to control the header values and observe the effects. For that, we'll return to our original API status request from video one of this chapter. In that request we made a basic GET request to the sample API's default route. It responded with some basic status information. If you still have that tab open from early, like I do, feel free to reuse it for this video. I've simply returned to that request and have selected the Body tab. We largely glossed over the response early, but now is a great time to look at it in more detail. The first line identifies the User Agent as provided by the client. Postman…

Contents