Is that possible to add headers parameters for every calls make from an environment?
I explain.
If I select my custom environment, which has some custom parameters setted in header part. Then, when I make a call in cUrl, PHP, Shell…, Postman add automatically environment headers in calls.
Yep, but I mean add it automatically instead of setting from us for each our API calls.
This could be great, especially if you have a lot of API for one environment .
You can save commonly used headers together in a header preset. Under the Headers tab, you can add a header preset to your request when you select “Manage Presets” from the Presets dropdown on the right. You can go ahead and apply those directly instead of manually adding it for each request. please view the following documentation for your reference: https://learning.getpostman.com/docs/postman/sending_api_requests/requests/#header-presets
Using the pm.request.headers.add({key: 'header_name', value: 'header_value' }) function in the Pre-Request Script at the Collection or Folder level, you would be able to programmatically set a header in one place that would be applied to multiple requests.