curl-library
Re: Query about
From: Jan de Lint <jg.de.lint_at_xs4all.nl>
Date: Thu, 26 Feb 2009 19:47:42 +0100
Date: Thu, 26 Feb 2009 19:47:42 +0100
Before starting this, I have to check weather the server is reachable or
not i.e i am able to connect to server or not.
>>
>> I tried it but curl_easy_perform returns CURLE_OK even if it could
>> not connect to the server.
>
> I'm sorry, but it does not return CURLE_OK for those cases. It never has.
What would be the optimal and safest way to detect whether a server is
reachable?
In my case an html server. Request some header data?
I have the impression that the name look-up sometimes at first needs
considerable time to start up.
Just a question.
Thanks,
]an
Received on 2009-02-26