forwarding a request to webserver


Web tier: servlets, JSP, Web frameworks: forwarding a request to webserver

  1. forwarding a request to webserver (1 messages)

    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.

  2. 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.