Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Re: What is the best way to get the response payloadby MarkM (Curate) |
on Sep 10, 2003 at 02:20 UTC ( [id://290267]=note: print w/replies, xml ) | Need Help?? |
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
|
|