NVPair credentials = getCredentials(url);
if (credentials != null)
{
conn.addBasicAuthorization(null, credentials.getName(), credentials.getValue());
}
HTTPResponse resp = conn.Get(url.getFile(), (NVPair[])null, headerPairs);
if (resp.getStatusCode() >= 300)
{
if (LOG.isDebugEnabled())
{
// Do not read data if debug is off.