Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 making s'mores by the fire in the courtyard of the Monastery: (20)
As of 2015-07-01 18:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (16 votes), past polls