W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2001

RE: HText_registerTextCallback

From: Bang, Steinar <Steinar.bang@tandbergtv.com>
Date: Thu, 16 Aug 2001 07:45:08 +0200
Message-ID: <194F8BB4FDB2D311B4010008C733C77401594D56@no-mail.oslo.tandbergtv.lan>
To: "'Henrik Frystyk Nielsen'" <henrikn@microsoft.com>, www-lib@w3.org
Cc: SunilGS@aol.com
> From: SunilGS@aol.com [mailto:SunilGS@aol.com] 

> I am trying to register a function to get the entire
> web page including the  html tags.  Just as how it
> came back from the server.  I looked at the 
> HText_registerTextCallback, but that strips out the
> HTML code.  Is there any other callback I can register
> to get the entire page back? 

Is loading it into a memory buffer what you want to do?
If so, does HTLoadToChunk() work for you?
	<http://www.w3.org/Library/src/HTAccess.html#Load>

One reason HTLoadToChunk(), or the other functions on the above URL, may not
work for you, is that you have registered a conversion to "*/*" (aka.
WWW_SOURCE).
The HTLoadTo...() functions operate by setting an 
explicit output stream on the request, but this stream will not be used if a
conversion to WWW_SOURCE can be found.

I've spent quite a bit of time tracking that down...:-)

(I think the behaviour is wrong, btw.  I think an explicitly set output
stream should _always_ override any conversion that might be found.  That's
what I expected, at least)
This email, its content and any attachments is PRIVATE AND CONFIDENTIAL to
TANDBERG Television. If received in error please notify the sender and
destroy the original message and attachments.
Received on Thursday, 16 August 2001 01:45:42 GMT

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