hc = setProxySetttings(hClient, hc);
HeadMethod hMethod = null;
try {
hMethod = new HeadMethod(url.toString());
hMethod.setRequestHeader("cache-control", "no-cache");
int status = hClient.executeMethod(hMethod);
if (status != HttpStatus.SC_OK) {
// Check for redirection.
if (status == HttpStatus.SC_MOVED_PERMANENTLY
|| status == HttpStatus.SC_MOVED_TEMPORARILY