here is the code i was talking about in my revious mail
*****************************************************
import java.net.*;
import java.io.*;
import java.util.*;
public class DoPOST
{
HttpURLConnection connection = null;
public DoPOST()
{
try
{
URL t_url = new
URL("http://192.138.90.31/sathish/servlet/RecordServlet");
connection = (HttpURLConnection)t_url.openConnection();
connection.setUseCaches(false);
connection.setDoOutput(true);
connection.setDoInput(true);
PrintStream out = new
PrintStream(connection.getOutputStream());
String myString = "somestring";
String myString2 = "somethingelse";
StringBuffer query = new StringBuffer();
query.append("myString=");
query.append(URLEncoder.encode(myString));
query.append("&myString2=");
query.append(URLEncoder.encode(myString2));
out.print(query.toString());
out.close();
}
catch (IOException e)
{
System.out.println("Io exception");
}
finally
{
if (connection != null)
{
connection.disconnect();
}
}
}
public static void main(String [] args)
{
DoPOST dp = new DoPOST();
}
}
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html