logger.error("Basic Credentials does not have the correct format");
return HttpServletResponse.SC_INTERNAL_SERVER_ERROR;
}
//Add credentials
Credentials creds = new Credentials();
creds.add(cred);
//Session status: set default value
int resultCode = HttpServletResponse.SC_UNAUTHORIZED;
//Instantiate Crawling session