Question: I want to write a script to log in and interact with a web page, and a bit at a loss as to where to start. I can probably figure out the html parsing, but how do I handle the login part? I was planning on using bash, since that is what I know best, but am open to any other suggestions. I'm just looking for some reference materials or links to help me get started. I'm not really sure if the password is then stored in a cookie or whatnot, so how do I assess the situation as well?

Thanks,

Dan

Answer: 
I did something like that at work some time ago, I had to login in a page and post the same data over and over...

Take a look at [here](https://stackoverflow.com/questions/1232867/login-to-a-site-and-then-post-to-a-page-in-it). I used wget because I did not get it working with curl.
Search this site for [screen scraping](https://stackoverflow.com/search?q=screen+scraping). It can get hairy since you will need to deal with cookies, javascript and hidden fields (viewstate!). Usually you will need to scrape the login page to get the hidden fields and then post to the login page. Have fun :D