Reliance Login Script for Python 3.0 v1.0 Created by Kunal Dua on 2009-12-30 http://www.kunaldua.com/blog/?p=323 This program is free software; you may redistribute it and/or modify it under the same terms as Python itself. """ import urllib, http.cookiejar username = '1111111111111111' #replace the text within quotes with your username password = 'password' #replace the text within quotes with your password jar = http.cookiejar.FileCookieJar("cookies") opener = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(jar)) response = opener.open("http://10.239.89.15/reliance/startportal_isg.do") login_data = urllib.parse.urlencode({'userId' : username, 'password' : password, 'action' : 'doLoginSubmit'}) resp = opener.open('http://10.239.89.15/reliance/login.do', login_data)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)