Jump to content

Recommended Posts

Posted

Depending how they're got it setup, generally you need to find the two variables it's sending via the post script. In this case seems to be j_username j_password. Set them either in script, then post to the form it's trying to log into in first place.

 

Steve

Posted
I wanted to create a script to autologin to a website using a username and password

 

To do what? If you just want to log in and leave the web page ready for someone to use, AutoIt is probably your best bet - have the website start up in a web browser, have AutoIt enter the username and password, then return control to the user. If you want to log in to extract some data then a webpage scraping library is probably more what you're looking for. When you pass a username and password to a website you generally get an authentication cookie back that you have to present for each subsequent transaction, which is easy enough to code yourself but a bit of a faff - there's ready-made libraries in most languages.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...