Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 17.3 The HTTP ModulesChapter 17
The LWP Library
Next: Reference: base
 

as_string

 $resp->as_string()

Returns a string version of the response with lines separated by \n. For example, this method would return a response string that looks like this:

-- HTTP::Response=HASH(0xc8548) --
RC: 200 (OK)
Message: all is fine

Content-Length: 2
Content-Type: text/plain

hi
------------------


Previous: 17.3 The HTTP ModulesPerl in a NutshellNext: Reference: base
17.3 The HTTP ModulesBook IndexReference: base