Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Final MIME delimiter requires following linefeed [ #65710] #223

oalders opened this issue Mar 31, 2017 · 2 comments

Final MIME delimiter requires following linefeed [ #65710] #223

oalders opened this issue Mar 31, 2017 · 2 comments


Copy link

@oalders oalders commented Mar 31, 2017

Migrated from (status was 'open')


From on 2011-02-14 11:59:23:

HTTP::Message parses MIME messages.  As part of the parsing process, the
subroutine _parts strips of the final delimiter and any following text
using the line:

	    $str =~ s/\r?\n--\Q$b\E--\r?\n.*//s;

where $str holds the message and $b the boundary.

This pattern requires at least a \n after the boundary in order to match.

I am trying to interact with a web service, using the XML::Compile::SOAP
modules, which use HTTP::Message, where the MIME response ends
immediately after the final --boundary-- delimiter without any further

According to rfc2045 (and following), no characters following the final
delimiter are necessary and the linefeed is not part of the delimiter:

     multipart-body := [preamble CRLF]
                       dash-boundary transport-padding CRLF
                       body-part *encapsulation
                       close-delimiter transport-padding
                       [CRLF epilogue]

     transport-padding := *LWSP-char
                          ; Composers MUST NOT generate
                          ; non-zero length transport
                          ; padding, but receivers MUST
                          ; be able to handle padding
                          ; added by message transports.

     close-delimiter := delimiter "--"

I'm using HTTP::Message 5.835, perl 5.10.1, Cygwin_NT-6.1


From on 2014-09-20 13:23:32:

Thank you for reporting this bug.  It duplicates which has since been fixed.
Copy link

@colinnewell colinnewell commented Apr 12, 2017

This appears to be a dead issue.

@genio genio added the Duplicate label Apr 12, 2017
Copy link

@genio genio commented Apr 12, 2017

This issue is a duplicate of libwww-perl/HTTP-Message#71 which we think is fixed.

@genio genio closed this Apr 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.