W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2000

Re: bug or misunderstanding ?

From: Sam Couter <sam@topic.com.au>
Date: Fri, 2 Jun 2000 11:30:27 +1000
To: Gregory Nicholls <gnicholls@level8.com>
Cc: www-lib@w3.org
Message-ID: <20000602113027.C1977@topic.com.au>
Gregory Nicholls <gnicholls@level8.com> wrote:
>  Hiya,
>    I used HTLoadAnchor against a server that was down. I _thought_ I'd
> get a 'NO' response however it returned a 'YES'.
> Looking deeper, it seems that HTTPEvent calls HTHost_connect. This
> returned HT_NO_HOST (so far so good). It seems that HTTPEvent then sets
> this error code in the http->result field and drops down through to the
> HTTP_ERROR case. This does a cleanup and then (here's where I'm puzzled)
> returns HT_OK.
>     Is this behaviour correct ?? If it is, I'd be grateful if someone
> could shed some light on the logic here and tell me how I can find out
> about these errors up in HTLoadAnchor land.
>         Thanks,
>             Greg.

Your terminateRequest handler (assuming you followed the example code) will
recieve the status of the request as one of its arguments.
Register a terminateRequest handler with HTNet_addAfter().
-- 
Sam Couter          |   Internet Engineer   |   http://www.topic.com.au/
sam@topic.com.au    |   tSA Consulting      |
PGP key available on key servers
PGP key fingerprint:  A46B 9BB5 3148 7BEA 1F05  5BD5 8530 03AE DE89 C75C

Received on Thursday, 1 June 2000 21:30:37 GMT

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