public static void main(String[] args) throws IOException {
    if (false) {
      new SocketMessage( 9999, "startNewServer");
      raw = true;

    } else {
      String url = "http://localhost:8080/thredds/test/it" // + EscapeStrings.escapeOGC("yabba/bad[0]/good")
               +"?"+EscapeStrings.escapeOGC("quuery[1]");
      System.out.printf("send '%s'%n", url);
      try (HTTPMethod method = HTTPFactory.Head(url)) {
          method.execute();
          int status = method.getStatusCode();
          System.out.printf("%d%n", status);
      } // close method, close method internal session
    }
  }
public static void main(String[] args) throws IOException {
    if (false) {
      new SocketMessage( 9999, "startNewServer");
      raw = true;

    } else {
      String url = "http:
               +"?"+EscapeStrings.escapeOGC("quuery[1]");
      System.out.printf("send '%s'%n", url);
      try (HTTPMethod method = HTTPFactory.Head(url)) {
          method.execute();
          int status = method.getStatusCode();
          System.out.printf("%d%n", status);
      } 
    }
  }
public static void main ( String [ ] args ) throws IOException { if ( false ) { new SocketMessage ( 9999 , "startNewServer" ) ; raw = true ; } else { String url = "http://localhost:8080/thredds/test/it" // + EscapeStrings.escapeOGC("yabba/bad[0]/good") + "?" + EscapeStrings . escapeOGC ( "quuery[1]" ) ; System . out . printf ( "send '%s'%n" , url ) ; try ( HTTPMethod method = HTTPFactory . Head ( url ) ) { method . execute ( ) ; int status = method . getStatusCode ( ) ; System . out . printf ( "%d%n" , status ) ; } // close method, close method internal session } }
////////////////////////////////////////////
////////////////////////////////////////////