Writing the Authorization header is usually quite easy: