Retrieving response headers AND body in a single request

Is there any ready to use tool or lib to pass messages with files and it returns them as a multipart boundary?