prepare fields for http auth.