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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://290267]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (8)
As of 2024-04-16 16:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found