java.net.HttpURLConnection should do the trick. You could then POST the data from you Servlet to the CGI page and then do whatever you need with the results without relying on the browser for this step.
Good luck!
chris murphy
lead developer
nuforia inc. > houston
v 713.354.1557
f 713.354.1600
http://www.nuforia.com
-----Original Message-----
From: Jeff Neuenschwander [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 18, 2000 5:29 PM
To: [EMAIL PROTECTED]
Subject: Servlet POST initiation
Does anyone know how to initiate a POST request from a servlet? I have a servlet which generates the HTML for a form (populated entirely by hidden fields, which are actually fields the servlet gets from a database), but I need to servlet to then POST all this info to another script (perl actually) I placed submit button on the form the servlet generates it, and when I push it, the whole thing works like a charm. However, I need it to happen automatically. The other option is finding some way to have a servlet POST a bunch of parameters directly to a page, without doing it through the HTML code. Either way would work, but I can't figure out how to do either!
Thanks,
Jeff
