forwarding a request to webserver

Discussions

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

  1. forwarding a request to webserver (1 messages)

    hi,
    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.

    Thanks
    Buchanna
  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.
    tx
    Buchanna