can any body plz tell me how to Auto login a WebSite.
means when i run the application,it Automatically login into the website.
I think good solutions have already been posted. As an alternate solution, scripting approch may be useful. Here is a script in biterscripting.
# Start session
isstart "dailylogin" "description" "Mozilla/4.0"
# Connect to the server and get the default login form.
isconnect "dailylogin" "http://www.xxx.yyy"
# Get cookies from the server and put them in header for all future requests.
script "SS_ISCookies.txt" from( "dailylogin" ) to( "dailylogin" )
# Submit the login page - this is at "ACTION=". I will assume it is login.asp.
issubmit "dailylogin" "/login.asp" "login=myloginid" "password=mypassword"
# DO OTHER STUFF
# Disconnect and end the session.
This script is in biterscripting.
ASP.NET websites send a session id as a cookie, which is automatically taken care of the SS_ISCookies.txt call in this script. ASP.NET sites also maintain these variables -
__VIEWSTATE, __EVENTVALIDATION, __EVENTTARGET, __EVENTARGUMENT, __LASTFOCUS
You need to extract their values from each response and submit them in subsequent request. So, the issubmit command will look like -
issubmit "dailylogin" "/login.asp" "login=myloginid" "password=mypassword" "__VIEWSTATE=..." "__EVENTVALIDATION=..." etc.
This would get you full access to the web site without touching the keyboard or mouse.
Santosh4u, if this helps please login to Mark As Answer. | Alert Moderator