hyper
hyper copied to clipboard
Authentication how-to needed
It is in the headers, I think, and needs to be passed with every request:
c = HTTP11Connection(ip, port)
hdrs = headers = {
"Authorization": "Basic cCF1eDpqYXZhYzE=",
}
first = c.request('GET', url, headers=hdrs)
My initial guess was that I could pass it into the constructor of the connection