Until recently, whenever I’d generate a code snippet of a call to share with a colleague, the request Headers and their values were generated as part of the code. (cURL)
Now all I see is the endpoint with no Headers generated and I don’t see a setting that controls this, am I missing something?
Note: This is referring to non-Postman specific headers
That is true. If you have headers defined as part of each request it will be generated as part of the cURL request. A couple of gotchas that always trips me:
Save Request - A lot of times I haven’t saved the request and the headers / values aren’t reflected.
Header Quick View - I have the hidden header quick view open and assume these will be shown in a snippet request (they won’t).
Make sure you haven’t fallen into these traps, and you should be good.
If you’re running into this problem on the latest version, there is a known issue with the Headers showing in the code gen snippets.
It’s been fixed and will be out in the next release but in the meantime, deselecting and then reselecting the headers should make them show in the snippet.