Jesus M. Salvo Jr. wrote:

At the moment, the HttpMethod interface has a method getResponseBodyAsStream() that returns an InputStream of the HTTP body.
I need a method that returns the _entire_ HTTP response, including the HTTP headers and body, in a single InputStream.
The reason for this is that I need to pass the InputStream to JavaMail's MimeBodyPart constructor, and MimeBodyPart requires the HTTP headers to properly set the MIME headers.


Sounds reasonable. Maybe we can find an easy way to do it. We could add another property "parseHeaders" (default true) to set before you make the request.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to