Accept Header
The Maileon API returns the results as XML except for the cases where files are requested (html, pdf, image etc …). Each request expecting an XML result must include the following header:
1 |
Accept: application/vnd.maileon.api+xml |
Requests expecting a file as result must specify the mime type of the file as value of the Accept header. Examples:
1 2 3 |
Accept: application/pdf Accept: text/html Accept: image/jpg |
Content-Type Header
POST and PUT requests submitted to the Maileon API must contain a Content-Type header with the following value for XML requests:
1 |
Content-Type: application/vnd.maileon.api+xml; charset=utf-8 |
or with the mime type of the file to be uploaded:
1 2 3 |
Accept: application/pdf Accept: text/html Accept: image/jpg |