Content-Type
Tells the server what format the request body is in.
What it does
Content-Type describes the body of your request (or response). For POST/PUT/PATCH, the server needs to know how to parse it. Without it, the server may reject the request or misinterpret the data.
Common values
application/json— JSON bodyapplication/x-www-form-urlencoded— Form datamultipart/form-data— File uploadstext/xml— SOAP/XML
Example (JSON)
Content-Type: application/json
{"name": "Jane", "email": "jane@example.com"}