A worked example, rendered from real sample data. Sign in to run the tool on your own input.
Content-Type: application/json
Accept: application/vnd.api+json
Authorization: Bearer eyJ...
X-Request-ID: 7f3b2eHeaders:
Content-Type: application/json
Accept: application/vnd.api+json
Authorization: Bearer eyJ...
X-Request-ID: 7f3b2e
curl:
curl -H 'Content-Type: application/json' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer eyJ...' \
-H 'X-Request-ID: 7f3b2e' \
https://api.example.com
fetch:
fetch('/api', {
headers: {
"Content-Type": "application/json",
"Accept": "application/vnd.api+json",
"Authorization": "Bearer eyJ...",
"X-Request-ID": "7f3b2e"
}
})
Compose request headers — output as curl flags and fetch options. Part of the DevTools Surf developer suite. Browse more tools in the Networking collection.