URI url = new URI(args[0]);
DefaultAuthHandler.setAuthorizationPrompter(new MyAuthPrompter(pa_name, pa_pass));
HTTPConnection con = new HTTPConnection(url);
HTTPResponse rsp = con.Head(url.getPathAndQuery());
int sts = rsp.getStatusCode();
if (sts < 300)
System.out.println("No authorization required to access " + url);
else if (sts >= 400 && sts != 401 && sts != 407)