![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Finding the size of the reponse using SOAP::Liteby AltBlue (Chaplain) |
on Aug 07, 2008 at 23:02 UTC ( [id://703017]=note: print w/replies, xml ) | Need Help?? |
for the RESTful ones, this is easy, i can just do content_length() on the LWP response. content_length?! Take care, as it does not do what you might think: it just returns the value of the Content-Length header, which - of course - may be missing... or just plain wrong (as I've seen already too many wanna-be-smart web apps that have no idea about its meaning). Is there an similar way to do this with SOAP::Lite? Quite similar in fact, as SOAP::Lite uses the same LWP modules for HTTP transport. The usual way to reach those HTTP::Response objects is to enable runtime tracing of transport events. Here's an example:
In Section
Seekers of Perl Wisdom
|
|