URL url = new URL(Const.ZZIMDELETE); // URL
HttpURLConnection http = (HttpURLConnection) url
.openConnection(); // 접속
// --------------------------
// 전송 모드 설정 - 기본적인 설정이다
// --------------------------
http.setDefaultUseCaches(false);
http.setDoInput(true); // 서버에서 읽기 모드 지정
http.setDoOutput(true); // 서버로 쓰기 모드 지정
http.setRequestMethod("POST"); // 전송 방식은 POST
// 서버에게 웹에서 <Form>으로 값이 넘어온 것과 같은 방식으로 처리하라는 걸 알려준다
http.setRequestProperty("content-type",
"application/x-www-form-urlencoded");
// --------------------------
// 서버로 값 전송
// --------------------------
StringBuffer buffer = new StringBuffer();
buffer.append("idx").append("=").append(mIdx).append("&");
buffer.append("user").append("=").append("icross");
OutputStreamWriter outStream = new OutputStreamWriter(
http.getOutputStream(), "UTF-8");
PrintWriter writer = new PrintWriter(outStream);
writer.write(buffer.toString());
writer.flush();
buffer.append("idx").append("=").append(midx).append("&") 이 라인에서
midx의 값을 배열로 해서 넘겨 주고 싶습니다
어떤식으로 해야 하나요?ㅠ