How to handle error InternetConnect as connection timeout, server not found by using HTTP with wininet
Posted on 2007-10-17
I have used HTTP connection in C++ as ::InternetOpen, ::InternetConnect to open and connect to server URL
BUT I don't know how to handle connection error as page not found, server not available,...
Because with my testing I use to connect with any URL, a invalide URL, a unavailble URL, I see InternetConnect return a NOT NULL connection.
So how can I know when server is not available, or server not found, or connect timeout,....
Can you give me a handle to handle errors by using HTTP with wininet