HTTP Auth and body auth split into own functions.