안녕하세요

안드로이드 c2dm이용해서 메시지 전송을 하려고 합니다.

우선,

3rd파티 앱서버로 registration ID를 전송하고

서버에서는 전송받은 registration ID를 db에 저장하려고 합니다.

그런데 왜...ㅠㅠㅠㅠㅠㅠㅠ get방식으로 메시지를 전송하려고 하는데......

전송이 안됩니다.

아래 코드에 문제가 있나요??

그냥 웹브라우저에 아래같이 직접 url을 입력하면 서버쪽에서는 분명 잘 동작하는데...ㅠ 뭐가문제인가요?

http://http://192.168.123.106/ttserver.php?registration_id=APA91bFM_vyDnpkHKc5u62dwryd5hJa8dGzD_E5vWBqwkwb6byNP0hqeD_gaIu4-Ne5pFOCpuWY6LgxhIt1fi7APLfjZsSW2bdbKm7beCFcJNqhyaSOqmEunpI2sOtudFsOgp1EXW3BwXCkWNchKzjTLhGvj4CMiQQ&tel=01056361305&mode=register

public void send(String my_role) throws Exception{

try {
URL idRegistrationUrl = new URL("
"http://192.168.123.106/ttserver.php?tel=" + tel
+ "&message=" + my_role + "&mode=send" );
HttpURLConnection conn = (HttpURLConnection) idRegistrationUrl.openConnection();
conn.setConnectTimeout(60000);
conn.setReadTimeout(60000);
conn.setUseCaches(false);
Log.i("tag", "idRegistrationUrl = " + idRegistrationUrl.toString());


// URL에 접속
// InputStream is = conn.getInputStream();
// is.close();
conn.disconnect();


Toast toast_reg = Toast.makeText(this, "메시지 전송", Toast.LENGTH_SHORT);
toast_reg.show();

} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}