Content Negotiation (Accept) Playground

Type your own Accept and Accept-Language: Dodi’s gudang picks JSON, HTML or XML (or 406), and see what a halte without Vary hands over. An interactive Content…

Why it matters

A versatile API serves many formats from one endpoint. Knowing negotiation means knowing why curl gets JSON but a browser gets HTML from the same URL, when a 406 appears, and why forgetting Vary makes a CDN serve the wrong format.

The key idea

The client proposes with q, the server decides

Common mistakes

Try it in this playground