human
I wrote the below code

    def basic_login_aux(username, password, server=server):
        key = base64.b64encode(((username + ':') + password))
        headers = {'Authorization': ('Basic    ' + key)}
        request = urllib2.Request(server, None, headers)
        try:
            urllib2.urlopen(request)
            return True
        except (urllib2.URLError, urllib2.HTTPError):
            return False
    return basic_login_aux

What's a good function header?

=====
Here's a good function header?
assistant
#Here's a good function header.

def basic_auth(server='http://127.0.0.1'):