locked
Content-Type problem posting MIME over Http RRS feed

  • Question

  •  Hi,
     
    I need to post a MIME message over http, and have been trying to use HttpWebRequest to do this.
    The MIME message is multipart/related and needs a boundary to seperate mime parts - but the HttpWebRequest does not allow the boundary parameter of Content-Type header to be set (after a hard return) on next following line - this is expected by the receiving server!

    So the MIME headers must look like:

    MIME-Version: 1.0
    Content-Type: multipart/related;
        boundary="--=Some_Mime_Part"

    ----=Some_Mime_Part
    <Mime part headers>

    ----=Some_Mime_Part
    <Mime part headers>

    ----=Some_Mime_Part--

    Anyway to do this??
    Monday, February 2, 2009 10:25 PM

Answers

  • Well, actually the problem seemed not related to the boundaryId. Instead it turned out to the http expect header that needed to be cleared.
    • Marked as answer by Staun Thursday, February 5, 2009 3:57 PM
    Thursday, February 5, 2009 3:57 PM