Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: What is the best way to get the response payload

by MarkM (Curate)
on Sep 10, 2003 at 02:20 UTC ( #290267=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://290267]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2016-09-27 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (507 votes). Check out past polls.