W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2003

Re: server down error status.

From: Richard Atterer <jan2003@nospam.atterer.net>
Date: Sat, 25 Jan 2003 06:51:21 -0500 (EST)
To: www-lib@w3.org
Message-ID: <20030124230245.GA4105@nenya.lan>




On Fri, Jan 24, 2003 at 02:45:36PM -0600, Tanmay Patwardhan wrote:
> But, when the web server is not running at all, and I try to POST to a URL, 
> then the status returned from status = HTPostAnchor(src, dst, request) is 1 
> and libww goes into the following loop infinitely.
> if (status == YES)
> {
> HTEventList_loop(request);
> }
> 
> Whats the best way to catch this error?

Hm, the way I handle errors in my application is with an "after filter", 
registered with:

  HTNet_addAfter(myAfterFilter, NULL /*template*/, 0 /*param*/,
                 HT_ALL, HT_FILTER_MIDDLE);

Cheers,

  Richard

-- 
  __   _
  |_) /|  Richard Atterer     |  CS student at the Technische  |  GnuPG key:
  | \/¯|  http://atterer.net  |  Universität München, Germany  |  0x888354F7
  ¯ '` ¯
Received on Monday, 27 January 2003 04:52:37 GMT

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