zdavatz / yopenedi

OpenTrans 2.1/EDIFACT D.96A File converter
GNU General Public License v3.0
3 stars 3 forks source link

Testing Fegime API, expects Content-Type Header #276

Closed zdavatz closed 3 months ago

zdavatz commented 3 months ago
  1. Testing with
  2. curl -k -X POST -H 'AS2-FROM:janico' -H 'AS2-TO:FEGIME-PROD' -H 'MESSAGE-ID:aaa' -T 2024-07-08_092903 -v https://fegime-comsrv-prod.compacer.net:9444/fegime
zdavatz commented 3 months ago
  1. Fegime wants a Content-Type from the sender.
  2. This seems to work:
  3. curl -k -X POST -H "Content-Type: plain/text" -H 'AS2-FROM:janico' -H 'AS2-TO:FEGIME-PROD' -H 'MESSAGE-ID:aaa' -T 2024-07-08_092903 -v https://fegime-comsrv-prod.compacer.net:9444/fegime
  4. We need to log the MDN response in our log.
  5. Response looks good
    
    ------=_Part_10147_1798334376.1720518208130
    Content-Type: text/plain
    Content-Transfer-Encoding: Binary

Thank you for exchanging data with edbic ------=_Part_10147_1798334376.1720518208130 Content-Type: message/disposition-notification Content-Transfer-Encoding: binary

Original-Recipient: rfc822; FEGIME-PROD Final-Recipient: rfc822; FEGIME-PROD Original-Message-ID: aaa Disposition: automatic-action/MDN-sent-automatically; processed Received-Content-MIC: Qv8gjjaK36/xH0r5dmJv7j9E5nA=, sha1

------=_Part_10147_1798334376.1720518208130--