You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (Jira)" <ji...@apache.org> on 2023/04/01 07:08:00 UTC

[jira] [Resolved] (HTTPCLIENT-2064) MultipartEntityBuilder should support preamble and epilog

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-2064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCLIENT-2064.
-------------------------------------------
    Fix Version/s: 5.3-alpha1
       Resolution: Fixed

> MultipartEntityBuilder should support preamble and epilog
> ---------------------------------------------------------
>
>                 Key: HTTPCLIENT-2064
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2064
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient (classic)
>    Affects Versions: 5.0
>            Reporter: Michael Osipov
>            Priority: Major
>             Fix For: 5.3-alpha1
>
>
> According to RFC 2046, section 5.1.1 one can augment the multipart message with a preamble and an epilog. Both may consist of:
>  
> {noformat}
>      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.
> {noformat}
> {{text}} is defined in RFC 822, section 3.3 as:
> {noformat}
>     text =  <any CHAR, including bare   ; => atoms, specials,
>             CR & bare LF, but NOT       ;  comments and
>             including CRLF>             ;  quoted-strings are
>                                         ;  NOT recognized.
> {noformat}
> {{CHAR}} is 0 to 127.
> This could be added as
> {code}
> MultipartEntityBuilder#addPreamble()
> MultipartEntityBuilder#addEpilog()
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org