code: private HttpURLConnection createHeadConnection(String path) throws IOException {
          HttpURLConnection connection = createHttpURLConnectionToMassive(path);
          connection.setRequestMethod("HEAD");
          return connection;
      }
docs: Creates a head request connection to the specified path
  
  @param path The relative URL path
  @return An HttpURLConnection to the specified path
  @throws IOException If there was a problem creating the connection or URL