
import java.net.URL;
import java.net.URLConnection;
import java.io.*;

public class PutOnServer implements UserDao {
	
	URL url = new URL (http://localhost:8080);
	URLConnection connection = url.openConnection();
	connection.setDoOutput(true);
    OutputStreamWriter writer=new OutputStreamWriter(conn.getOutputStream());
    
}

@@ -63,16 +63,51 @@
 va.io.*;
+%0Aimport org.json.simple.JSONObject;
 %0A%0Apublic
@@ -242,16 +242,88 @@
 tion();%0A
+%09HttpURLConnection httpCon = (HttpURLConnection) url.openConnection();%0A%0A
 %09connect
@@ -423,15 +423,348 @@
 eam());%0A
-
     
+JSONObject json=null;%0A%0A    public static putDetails(int id, String mail, String userName, String sn, String givenName)%7B%0A    %09json=new JSONObject();%0A    %09json.put(%22id%22, 2023 );%0A    %09json.put(%22mail%22, lukas4@gmail.com );%0A    %09json.put(%22userName%22, lukas,  );%0A    %09json.put(%22sn%22, sn210,  );%0A    %09json.put(%22givenName%22, lukasss,  );%0A    %7D%0A%0A
 %0A%7D%0A

Update PutOnServer.java