views:

17

answers:

1

Here's my scenario - I have the credentials for a couple of websites that need username and password to login. I would like to programmatically do this but just don't where to strrt.

For example, say the website is www.mywebsite.com and the the U: UserID and P: admin.

I am thinking something like this (this is of course pseudo-code): open("www.mywebsite?username=UserID,password=admin".

Can someone lead me down a path where I could learn more on how to do this?

Thanks.

+1  A: 

This is note a solution, but when I need to analyze a site I plan to scrape data off that requires a login, I usually use Fiddler to record my session. It will show you all the data between your browser and the site, so you can build the exact URL and variables needed to login to protected sites.

Zachary
THanks Zachary - see, this is the stuff that I was looking for. Since I have never done this before, I was not sure what this concept was called. Now I will research website 'scraping'. Any other ideas will be appreciated.