Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello sir,
i have a reliance brodband connection and i was looking for a dialer that auto login to reliance and also auto logout on specific time. i found a script to login to reliance but i had to customize it to get my task done. can you guide me how can i use this script with a c# app or convert it to c# or anything that does this. here is the python script i found.
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)
Posted
Updated 26-Dec-11 19:33pm
v2

1 solution

Hi, You can use IronPython to run python scripts in .NET.

http://ironpython.codeplex.com/[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900