I'm trying to write a program that will connect to a website, get the source code, look for the <body> tag using nodes. Within that tag there are three "textfields" that I want to input values in, and stream it back to the website.

I got so far to finding the <body> tag, but now I'm actually clueless.

Have you considered using JSoup? It's designed for web scraping like this and imho provides a nicer interface that the DOM (and more importantly handles all sorts of nasty broken HTML).
–
Jeff FosterJul 12 '11 at 13:37