public URLInfo getURLInfo(URL url, int timeout) {
HeadMethod head = null;
try {
head = doHead(url, timeout);
int status = head.getStatusCode();
head.releaseConnection();
if (status == HttpStatus.SC_OK) {
return new URLInfo(true, getResponseContentLength(head), getLastModified(head));
}
if (status == HttpStatus.SC_PROXY_AUTHENTICATION_REQUIRED) {
Message.error("Your proxy requires authentication.");