After i establish the connection through url i want to post the data .
After posting the data there is no change in client
Can anyone help me
import java.net.*;
import java.io.*;
import sun.net.www.http.HttpClient;
import javax.net.ssl.*;
public class classname{
public static void main (String[] args) {
try {
URL u = new URL("https://xxxx");
// open the connection and prepare it to POST
// URLConnection uc = u.openConnection( );
HttpsURLConnection uc = (HttpsURLConnection) u.openConnection();
uc.setDoOutput(true);
OutputStream raw = uc.getOutputStream( );
OutputStream buff = new BufferedOutputStream(raw);
OutputStreamWriter out = new OutputStreamWriter(buff, "8859_1");
out.write("login.Username=xxxx&login.Password=xxxx\r\n");
out.flush( );
out.close( );
}
catch (IOException e) {
System.err.println(e);
}
}
}