Hi,
 
I'd like to POST data to an http server with a java program (in the same way a www browser does it), in order to parse the response and do something with it. I have an example with the GET method but not POST.
 
For instance, consider the example below:
 
<form action="http://host/cgi-bin/program" method=post>
<input type="hidden" name="field1" value="valuefield1">
<input type="text" name="field2" value="valuefield2">
<input type="submit" name="submit" value="submit">
 
What is the corresponding JAVA code (I use the JDK 117B)?
 
Many thanks,
 
Pascal

Reply via email to