log.debug("Requesting url: [" + encodedUrl + "]");
HttpGet method = new HttpGet(encodedUrl);
try {
HttpResponse response = client.execute(method);
Status status = Status.fromHttpCode(response.getStatusLine().getStatusCode());
if (!acceptsMimeType(response.getLastHeader("Content-Type"))) {
return new RejectedMimeTypePage(url, status, response.getLastHeader("Content-Type").getValue());
}