W3C home > Mailing lists > Public > www-lib@w3.org > October to December 2000

Obtaining status response from libwww

From: <mjw@host.igs.net>
Date: Mon, 27 Nov 2000 23:45:18 -0500
To: www-lib@w3.org
Message-ID: <3A22F20E.6966.53DD400C@localhost>
Hi people!

Reading without headers, but need a bit of header info...

I'm largely following the example in chunkbody.c, I'm doing a:
	HTAnchor * anchor = HTAnchor_findAddress(absolute_url);
	chunk = HTLoadAnchorToChunk(anchor, request);
..but then followed by
	parent = HTAnchor_parent(anchor);
	format = HTAnchor_format(parent);

so I can obtain the "Content-type:".  Fine. That works fine...
..but just how on earth do I get the status response in the
"HTTP/1.x" line? It sure ain't by "HTAnchor_version" because
that's returning a null, and it's sure ain't by any "HTAnchor_header"
because that returns nulls too.

I'm a teensie bit baffled right now.......Anyone have any ideas? Pretty please?

Cheers
Mark
Received on Monday, 27 November 2000 23:34:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:38 GMT