in reply to HTTP::Response(s)

Before posting here, read the documentation for the module(s) you're using. In this case, read up on HTTP::Response.

You'll see that you can use headers_as_string or content, depending on exactly what you want to achieve.