Improve basic_auth example

Some web browsers will now prompt for user name and password.

Common usage of the www-authenticate specified in RFC 2617.