Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-2064

MultipartEntityBuilder should support preamble and epilog

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.0
    • 5.3-alpha1
    • HttpClient (classic)
    • None

    Description

      According to RFC 2046, section 5.1.1 one can augment the multipart message with a preamble and an epilog. Both may consist of:
       

           multipart-body := [preamble CRLF]
                             dash-boundary transport-padding CRLF
                             body-part *encapsulation
                             close-delimiter transport-padding
                             [CRLF epilogue]
           preamble := discard-text
           epilogue := discard-text
           discard-text := *(*text CRLF) *text
                           ; May be ignored or discarded.
      

      text is defined in RFC 822, section 3.3 as:

          text =  <any CHAR, including bare   ; => atoms, specials,
                  CR & bare LF, but NOT       ;  comments and
                  including CRLF>             ;  quoted-strings are
                                              ;  NOT recognized.
      

      CHAR is 0 to 127.

      This could be added as

      MultipartEntityBuilder#addPreamble()
      MultipartEntityBuilder#addEpilog()
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            michael-o Michael Osipov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: