Re: server down error status.

Richard Atterer <[email protected]>
Newsgroups gmane.comp.lib.libwww
Message-ID <[email protected]>



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
  ¯ '` ¯
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.