I need to be able to login to a website remotely. By remotely, I mean, within my code, I send a request with the login information to the url designated within my code and the remote website receives the username/password information (and any cookies if necessary, but I'm not sure how to detect the cookies if they are needed). The remote website will receive the username/password information as if I had typed them into the input fields and hit the form submit button. The response to sending the request remotely should be whatever page would be shown after the user logs in. I have seen many people say that this is not even possible, or is a security risk, but that's not the case at all.
If you look at this URL: http://www.netomatix.com/development/httpwebrequestredirect.aspx
then you will see that it is definitely possible. This programmer has done something like it in the past, I just can't find code. One draw back is that I do not know ASP.NET, but am working on learning it. I've programmed in classic ASP and PHP for 7 years. The website, upon logging in, may send cookies that I will need to detect and send back with any future requests.
This question is worth 500 points and much admiration if you can help me out with this. I apologize for needing very specific examples and/or working code. I have a webserver online that I can upload files to directly and see if it works. Thanks in advance for your help.