O tramite form, oppure crei un socket che simuli un POST, per esempio tramite

httpclient:

http://commons.apache.org/httpclient/features.html