How do I View, and maybe edit, the Raw request headers before sending the request?
Why do I want to do this? I’m creating a few collections that use a single OAuth2 authentication token yet the server (not ours) is replacing Bearer with a non-standard tag. So I need to be able to edit to the request to change this in the Collection.
I notice that I can see the code of the request in a wide range of formats yet it isn’t including headers and values from the parent collection.
I’m use to working with Curl and HTTPie so writing HTTP requests is really not a problem for me. I just need to do what I use to do with these tools using Postman.
I’ve tried this and the seems to be working for my basic ping test yet it still doesn’t show the inserted headers in a Raw request or the Code view, even after running it. Nor are the headers shown in the Temporary Headers tab.
This is what I added. First to the Collection then moved to request itself.
I noticed that it didn’t show the Postman-Token or Cache-Control headers as removed. I’ll check if they are with Wireshark later though wish this wasn’t necessary.
I’ve opened the Postman Console to show the Authorization Header being sent with the Request.
I wouldn’t expect to see the script changes in the generated code snippet, as that wouldn’t pick up the changes from the Pre-request Script and Tests sandbox environment.
To remove the Postman-Token and Cache-Control headers, you could just do this globally, from the General Settings.