Fixed the set_basic_auth params in the code example to include hostname.

Fixed the set_basic_auth params in the code example to include hostname.