HTTP REFERENCE
HTTP Headers Reference
Common request and response headers worth knowing during API testing.
| Header | Direction | Purpose |
|---|---|---|
| Authorization | Request | Carries authentication credentials or tokens. |
| Content-Type | Both | Describes the media type of the body. |
| Accept | Request | Indicates response media types the client can handle. |
| Cache-Control | Both | Controls caching behavior. |
| Location | Response | Provides a URL for redirects or newly created resources. |
| ETag | Response | Identifies a particular representation of a resource. |
| Set-Cookie | Response | Instructs a browser to store a cookie. |
QA checks
- Verify Content-Type matches the actual response body.
- Check authentication headers on protected endpoints.
- Validate cache and cookie behavior where relevant.