Ticket #1870: Handle HTTP authentication