Hey, I was wondering if Java can interact with a webpage as in editing input values and simulating button presses. What I would like to do is modify the values of both the text fields on this: http://mobile.msn.com/hm/folder.phpx and then simulate a press of the Submit button to log in.

I'm thinking opening a URLConnection and establishing an OutputStream, but I don't quite know where to go from there. I have looked at Reading from and Writing to a URLConnection (The Java™ Tutorials > Custom Networking > Working with URLs) but I am still pretty stuck.

Thanks in Advance.