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?

Received on Monday, 27 November 2000 23:34:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:53 UTC