0
"Https"プロトコルを使用してサーバーへの接続を作成しました。ここに私のコードです...JSONオブジェクトをサーバーに送信する方法
String httpsURL = "https://abc.com/auth/login/";
HttpsURLConnection con = null;
try{
URL url = new URL(httpsURL);
con = (HttpsURLConnection) url.openConnection();
con.setRequestMethod("POST");
con.setDoInput(true);
con.setDoOutput(true);
con.connect();
//String respMessage = con.getResponseMessage();
//int respCode = con.getResponseCode();
}catch(....){....}
私はJSONオブジェクトをサーバーにその接続を介して送信する必要があります。どうやってやるの?私を助けてください。前もって感謝します。