protected HttpURLConnection configureRequest(final HttpURLConnection request){
  if (credentials != null)   request.setRequestProperty(HEADER_AUTHORIZATION,credentials);
  request.setRequestProperty(HEADER_USER_AGENT,userAgent);
  request.setRequestProperty(HEADER_ACCEPT,getHeaderAccept());
  return request;
}

protected HttpURLConnection configureRequest ( final HttpURLConnection request ) { if ( credentials != null ) request . setRequestProperty ( HEADER_AUTHORIZATION , credentials ) ; request . setRequestProperty ( HEADER_USER_AGENT , userAgent ) ; request . setRequestProperty ( HEADER_ACCEPT , getHeaderAccept ( ) ) ; return request ; }
configure request with standard headers
