Supported Content-types and Accept Headers
The following table specifies the content-type available for the HTTP methods:
HTTP Method | Content-types | Accept Headers |
---|---|---|
GET | application/x-www-form-urlencoded |
application/json application/xml or text/xml multipart/form-data or multipart/mixed |
POST |
application/json application/xml or text/xml multipart/form-data or multipart/mixed application/x-www-form-urlencoded |
application/json application/xml or text/xml multipart/form-data or multipart/mixed |
PUT |
application/json application/xml or text/xml multipart/form-data or multipart/mixed application/x-www-form-urlencoded |
application/json application/xml or text/xml multipart/form-data or multipart/mixed |
DELETE | application/x-www-form-urlencoded |
application/json application/xml or text/xml multipart/form-data or multipart/mixed |
application/json
content-type is used. Whereas for
GET and DELETE HTTP methods, the
application/x-www-form-urlencoded
content-type is
used.