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

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();
OutputStream raw = uc.getOutputStream( );
OutputStream buff = new BufferedOutputStream(raw);
OutputStreamWriter out = new OutputStreamWriter(buff, "8859_1");
out.flush( );
out.close( );
catch (IOException e) {

Recommended Answers

All 3 Replies

I send the data and get the response also but still there is no change in client.
I tried that link also.
Can anyone help

"No change in the client" isn't exactly a clear statement of the problem. Your code above does not read the response, so if you actually are reading it somewhere else we can't very well make assumptions about why it's not working.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.