I have a simple application where I want to open a URL, submit the form with username and password fields and parse the response all in the background.
For some reason every time I look at the response it's the original page, not the response page. I have been searching for a few days and tried many methods of looking at the response and they all end up showing the same thing. Found a few forums were people reported seeing the same thing or saying that it worked in debug mode (which I'll try tonight) but not in "regular" run mode. Any help would be greatly appreciated. ================ String urlTest = "http://myurl/testverify.asp"; DefaultHttpClient httpclient = new DefaultHttpClient(); HttpResponse response; HttpPost httpost = new HttpPost(urlTest); List <NameValuePair> nvps = new ArrayList <NameValuePair>(); nvps.add(new BasicNameValuePair("username","myusername")); nvps.add(new BasicNameValuePair("password","mypassword")); try { httpost.setEntity(new UrlEncodedFormEntity(nvps,HTTP.UTF_8)); response = httpclient.execute(httpost); HttpEntity entity = response.getEntity(); if (entity != null) { InputStream is = entity.getContent(); ================ etc, etc, etc. the results from that entity.getContent() are always the same, the html form the "urlTest" page, not the response page which just contains a 1 or 0 on success or failure. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

