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 reply to Re: Re: What is the best way to get the response payload
by MarkM
in thread What is the best way to get the response payload
by mifflin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |