AS2: How To Add 'Subject' Http Header RRS feed

  • Question

  • Hi all, 
    I need to send a set of different messages with AS2 , but the recipient requires us to provide a message subject (see below in red)

       POST /receive HTTP/1.0

       Host: ....
       User-Agent: AS2 Company Server

       Date: Wed, 31 Jul 2002 13:34:50 GMT


       AS2-Version: 1.1

       AS2-From: "\"  as2Name  \""

       AS2-To: 0123456780000

       Subject: Test Case

    I'm not sure if Http.UserHttpHeaders would do the trick since the biztalk docs states the following :
    You can modify the following five standard HTTP headers by using the UserHttpHeaders property:

    • Accept
    • Referrer
    • Expect
    • If-Modified-Since
    • User-Agent

    How can I do this ?
    Thanks for the help.

    Wednesday, March 11, 2009 2:34 PM


  • Hi Yves,

    The thing is that Subject is not a HTTP header, but a AS2 specific header. I believe you are referring to HTTP adapter documentation ( which probably is telling the user to not muck with standard HTTP headers other than these five since HTTP adapter should be setting them.


    You should be able to set UserHttpHeaders context property only and HTTP adapter would blindly add this header.



    Disclaimer: This posting is provided "AS IS" with no warranties, and confers no rights.
    Thursday, March 12, 2009 7:38 PM

All replies