Guest User

Untitled

a guest
May 25th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. if auth:
  2. base64string = base64.encodestring('%s:%s' % (auth[0], auth[1])).replace('\n', '')
  3. req.add_header("Authorization", "Basic %s" % base64string)
Add Comment
Please, Sign In to add comment