home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


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
------------------