Re: how to check whether the remote servlet is up and running

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

On Thu, May 01, 2003 at 04:47:08PM -0700, vijayanand sankar wrote:
> Can someone tell me how I can find out if the remote servlet is up and
> running or not using libwww. Is there some api that tells whether the
> http connection is successful before I start the communication with the
> servlet.

Do you *really* need to know whether the HTTP connection is up, or is it OK
if you are just informed of any error conditions (couldn't resolve DNS,
connect timed out) by libwww? In that case, just register a handler which
gets called when anything happens to your request, using HTNet_addAfter() -
or if this is not enough, look at HTAlert_add().

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.