Originally posted by: kamper
Interesting question. I think this doesn't really have anything to do with servlets (of course you may do it from a servlet) because you are acting as a client instead of a server.
I would take a look at java.net.URLConnection and java.net.HttpURLConnection. It looks like you create an instance with URL.openConnection. If you use an http url I guess you'll get an instance of HttpURLConnection back. Then you can do whatever you need with it. It doesn't matter if you use POST or GET, it has nothing to do with html. What matters is how the webform expects the data to come in.
Why do you want to do this? Usually the reason would be connecting to a service that is offered by some other entity. But you're talking about writing the webform yourself? Why even break this over http if you don't have to?
