phax / as2-lib

A generic Java AS2 library, servlet and server
107 stars 43 forks source link

Question : Does AS2 includes standard HTTP headers and custom generated headers for communication between 2 systems interacting using AS2 protocol. #141

Closed ihudedi closed 1 year ago

ihudedi commented 2 years ago

Hi @phax I am just asking if the AS2 generate http headers and custom generated headers when transferring from AS2/to AS2 Thanks, Itay

phax commented 2 years ago

These are the headers of a signed and encrypted AS2 message. No other headers are added by the library itself:

Content-Type: application/pkcs7-mime; name="smime.p7m"; smime-type=enveloped-data
Subject: AS2 test message from as2-lib
Message-ID: <github-phax-as2-lib-20220817-230257+0200-3730@mycompanyAS2_mendelsontestAS2>
Content-Transfer-Encoding: binary
Content-Disposition: attachment; filename="smime.p7z"
Connection: close, TE
User-Agent: as2-lib/AS2Sender-4.11.0-SNAPSHOT
Mime-Version: 1.0
AS2-Version: 1.1
Date: Mi, 17 Aug 2022 23:02:58 +0200
Recipient-Address: http://testas2.mendelson-e-c.com:8080/as2/HttpReceiver
AS2-From: mycompanyAS2
AS2-To: mendelsontestAS2
From: phax.as2-lib@github.com
Disposition-Notification-To: phax.as2-lib@github.com
Disposition-Notification-Options: signed-receipt-protocol=required, pkcs7-signature; signed-receipt-micalg=required, sha1