// HTTP-Verb (GET, PUT, POST, or DELETE) + "\n"
sb.append(request.getMethod().toUpperCase()).append(LINE_SEPARATOR_UNIX);
// RFC822 Date (from 'Date' request header, must exist) + "\n" +
final String dateHeader;
if((dateHeader = request.getHeader(DATE)) == null) {
throw new BadCredentialsException("Incoming request missing " +
"required '" + DATE + "' request header.");
}
sb.append(dateHeader).append(LINE_SEPARATOR_UNIX);
// Content-Type (from 'Content-Type' request header, optional) + "\n" +
final String contentType;