import java.net.URL;
import java.io.*;

public class Run
{
  public static void main(String [] args) {

    if (args.length == 3) {
		  System.out.println("UNSUPPORTED");
      System.exit(0);
    } else if (args.length != 2) {
      System.out.println("usage: java Run <host> <port>");
      System.exit(1);
    }

    String host = args[0];
    String port = args[1];

    String https_url = String.format("https://%s:%s", host, port);

    try {
      new java.net.URL(https_url).getContent();
      System.out.println("VERIFY SUCCESS");
  } catch (javax.net.ssl.SSLHandshakeException | javax.net.ssl.SSLProtocolException | javax.net.ssl.SSLKeyException e){
      System.out.println("VERIFY FAILURE");
    } catch (Exception e) {
      e.printStackTrace();
      System.out.println(e.getCause().getMessage());
			System.exit(3);
    }
    System.exit(0);
  }
}

import java.net.URL;
import java.io.*;

public class Run {
  public static void main(String [] args) {

    if (args.length == 3) {
      System.out.println("UNSUPPORTED");
      System.exit(0);
    } else if (args.length != 2) {
      System.out.println("usage: java Run <host> <port>");
      System.exit(1);
    }

    String host = args[0];
    String port = args[1];

    String https_url = String.format("https://%s:%s", host, port);

    try {
      new java.net.URL(https_url).getContent();
      System.out.println("VERIFY SUCCESS");
    } catch (javax.net.ssl.SSLHandshakeException | javax.net.ssl.SSLProtocolException | javax.net.ssl.SSLKeyException e){
      System.out.println("VERIFY FAILURE");
    } catch (Exception e) {
      e.printStackTrace();
      System.out.println(e.getCause().getMessage());
      System.exit(3);
    }
    System.exit(0);
  }
}

fix java-net stub tabs to spaces.