Skip to main content
Send Web Request

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 body
  • application/x-www-form-urlencoded — Form data
  • multipart/form-data — File uploads
  • text/xml — SOAP/XML

Example (JSON)

Content-Type: application/json

{"name": "Jane", "email": "jane@example.com"}