server down error status.
"Tanmay Patwardhan" <[email protected]>
| Newsgroups | gmane.comp.lib.libwww |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
I am observing some peculiar behaviour in my program using libwww. When my
web server is running, but the URL is not available, I can catch that error
through ((HTAnchor_header(HTRequest_anchor(request))==NULL).
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?
Thanks and regards,
Tanmay
-----------------------
Tanmay Patwardhan
Applications Developer,
UBS Warburg,
Chicago, IL.
-----------------------
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail