in reply to Re: What is the best way to get the response payload
in thread What is the best way to get the response payload
Of course, I'm sure you intended:
my($header, $content) = split(/\n\n/, $response->as_string, 2);(Otherwise, if the body contained any blank lines, the blank lines would be lost...)
I prefer the solution posted by somebody else: $response->content.
|
---|
In Section
Seekers of Perl Wisdom