ÄÚµùÀº ¾Æ·¡ ÄÚµùÀÔ´Ï´Ù.
¾Æ·¡Ã³·³ÇÏ¸é ¹º°¡ °ªÀÌ ³ª¿Í¾ß µÇ´Âµ¥..
°ªÀº ÀÖ´Ù°í ³ª¿À´Âµ¥ Ãâ·ÂÀÌ Á¦´ë·Î ¾ÈµÇ³×¿ä..
¼¹ö´ÜÀÇ ÀÎÄÚµùÀº euc-kr ÀÔ´Ï´Ù.
ÀÌÀ¯°¡ ¹«¾ùÀÏ°¡¿ä..
HttpClient client = new DefaultHttpClient();
String postURL = "http://yoi.pluger.com/KLPJS/mobile/userCheck.html";
HttpPost post = new HttpPost(postURL);
List<NameValuePair> params = new ArrayList<NameValuePair>();
params.add(new BasicNameValuePair("userID", "test1234"));
params.add(new BasicNameValuePair("userPW", "test1234"));
UrlEncodedFormEntity ent = new UrlEncodedFormEntity(params,"euc-kr");
post.setEntity(ent);
HttpResponse responsePOST = client.execute(post);
HttpEntity resEntity = responsePOST.getEntity();
Log.i("RESPONSE", "post ¹æ½Ä");
if (resEntity != null)
{
Log.i("RESPONSE", "°ªÀÖÀ½");
Log.i("RESPONSE", EntityUtils.toString(resEntity));
}else
{
Log.i("RESPONSE", "°ªÀÌ ¾øÀ½");
}
* ±ÛÀ» µî·ÏÇϽǶ§ ²À ÇÊ¿äÇÑ °æ¿ì°¡ ¾Æ´Ï¸é °³ÀÎÁ¤º¸¸¦ ³²±âÁö ¸¶¼¼¿ä ^^ (¿¬¶ôó,À̸ÞÀÏÁÖ¼Ò,Áֹεî·Ï¹øÈ£ µî)