Minimal MIME headers

An inbound, clear text payload must contain the Content-Type: and Content-Length: headers at an absolute minimum.

Valid Content-Type: headers are:

  • Content-Type: application/edi-x12
  • Content-Type: application/edifact
  • Content-Type: application/xml
  • Content-Type: application/octet-stream

Valid Content-Length: entries should contain a precise byte count of the cleartext payload. For example: Content-Length: 2013

Its critical that the byte count be precise for proper reception and processing of the inbound payload.

For payload placement, a blank line should follow the Content-Type: and Content-Length: headers followed by the clear text EDI or XML payload.

Related topics

Related Links