Take a look at HttpURLConnection and URL classes. They're what you want (you may also want Runnable and Thread to avoid long waits in your program while the network connection is open).
Author and all-around good cowpoke
posted 13 years ago
Remember that servlets are intended to run in the servlet container environment such as Tomcat, not as stand-alone programs. It is the servlet container that handles turning your HttpURLConnection into a request. Bill