I need to forward a request to another webserver, but i need to check whether that server is running before make a request.
I can't connect to the server using HttpUrlConnection. Is there anyway that i can check the server is running before making a request??
your help is really appreciated.
i think using public abstract class URLConnection we may know the server is running or not, let me try.
protected boolean connected
If false, this connection object has not created a communications link to the specified URL. If true,
the communications link has been established.