Re: parse headers returned

2002-03-06 Thread Francis Turner
Sean M. Burke wrote: I've been trying to decide which would be better: $resp-status line or $resp-request-url . -- . $resp-status_line or $resp-status_line . ' at ' . $resp-request-url If this is to be used partly as a debugging aid then I like bracketing the returned data

Re: parse headers returned

2002-03-05 Thread Gisle Aas
[EMAIL PROTECTED] (Randal L. Schwartz) writes: Doh! When did *that* sneak in there! I don't really know. I guess you could dig in the CVS repository if you really want to know. There is an entry in the change log for release 5.18 (1997-12-12) that says: Documented

Re: parse headers returned

2002-03-05 Thread Sean M. Burke
At 11:34 2002-03-05 -0800, Gisle Aas wrote: Somewhat related: Based on a suggestion by Sean I would like to make the all the 'is_*' methods return the status_line when TRUE. Does anybody have a better suggestion for what a useful TRUE value could be? I've been trying to decide which would be

parse headers returned

2002-03-04 Thread Torbjørn Lindahl
hi, the responsobject from a HTTP request contains headers and the contents of the document, usually HTML. the individual header fields i have learned can be returned by the notation $respons-header('some header'); but how does one get the status field? in the as_string representation of the

Re: parse headers returned

2002-03-04 Thread Torbjørn Lindahl
Ah, brilliant! Thank you. regards Torbjørn On 4 Mar 2002, Randal L. Schwartz wrote: Torbjørn == Torbjørn lindahl [EMAIL PROTECTED] writes: Torbjørn All the headers are represented on a line each with a colon, but how do i Torbjørn reach the info on the first line, ie HTTP/1.0 200 OK

Re: parse headers returned

2002-03-04 Thread Maurice Aubrey
On Mon, Mar 04, 2002 at 06:27:34AM -0800, Randal L. Schwartz wrote: Torbjørn == Torbjørn lindahl [EMAIL PROTECTED] writes: Torbjørn All the headers are represented on a line each with a colon, but how do i Torbjørn reach the info on the first line, ie HTTP/1.0 200 OK Torbjørn are they

Re: parse headers returned

2002-03-04 Thread Randal L. Schwartz
Maurice == Maurice Aubrey [EMAIL PROTECTED] writes: Maybe Gisle could add $self-status_line that factors this out. Maurice There is a $self-status_line: Maurice sub status_line Maurice { Maurice my $self = shift; Maurice my $code = $self-{'_rc'} || 000; Maurice my $mess =