Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- URL url = new URL("ТУТСАЙТ.com");
- HttpsURLConnection urlConnection = (HttpsURLConnection)url.openConnection();
- urlConnection.setRequestProperty("Content_type", "application/json");
- urlConnection.setRequestMethod("POST");
- urlConnection.setDoInput(true);
- urlConnection.setDoOutput(true);
- urlConnection.connect();
- JSONObject jsonObject = new JSONObject();
- jsonObject.put("username", s1);
- jsonObject.put("password", s2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement