[android-developers] Submit username and password to website

2012-01-20 Thread n3d!m
I am trying to post login and username to the website. How to do that? Here is the code: if (v.getId()==R.id.loginBtn) { HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost(http://ius.edu.ba:8080/sis/ index.php); try {

[android-developers] Http post and get

2012-01-20 Thread n3d!m
My application connects to website which requires username and password. After POST is done http GET cannot access next page after login. After searching for solution I cam e to conclusion I need to send cookie with http POST. Tried this DefaultHttpClient mHttpClient = new DefaultHttpClient();