At 18:07 2002-04-24 -0700, Vicki Brown wrote:
> >>If I'm required to include a status line in my header, how do I get the
> >>complete status line (with protocol) from the LWP request result?
> >Ya lost me. Are you asking about the request object, or the response
> object?
>The response. The result from my request would be the response.
Hm, I was puzzling over your looking at the interaction from the server's
side. ("I... my header...")
Well, you can do:
print $r->protocol, ' ', $r->status_line, "\n";
But not every response has a protocol() attribute set -- I think that only
http(s) responses that actually reached a server do.
(So ftp responses don't, http responses that are just errors because the
server wasn't reachable don't, etc.)
--
Sean M. Burke http://www.spinn.net/~sburke/