Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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.


Comment on Re: Re: What is the best way to get the response payload
Download Code

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 romping around the Monastery: (4)
As of 2014-08-01 03:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (256 votes), past polls