Add HTTP set_auth_type('basic') call. Don't send additional request to determine server auth type on each user request.