data = urllib.parse.urlencode({'mode_login': 'Agree', 'redirect':
    'http://stackoverflow.com'})
result = urllib.request.urlopen('http://192.168.100.1:5280/', data).read()
How to do a Post Request in Python?