Headers Tab
In Postdata, you can easily set and manage request headers using the Headers tab. This tab allows you to definekey-value
pairs, and you can also add a description
for each header to keep track of its purpose.
Here are a few common headers you might set:
Header | Description |
---|---|
Authorization | Used for passing credentials, such as tokens, to authenticate the client with the server. |
Content-Type | Indicates the format of the data being sent, like application/json . |
Accept | Tells the server what media types the client can handle in the response. |
Cache-Control | Controls caching behavior in both requests and responses. |
User-Agent | Provides information about the client making the request. |
For Authorization and Content-Type headers, the description field will be disabled, and the value will be empty. In contrast, for inherited headers, the specified values will be automatically populated in the description field.