php - how to get the string value from input stream? -


I have an Android app, in the Android application, I have selected the query on my SQL database table.

  http client httpclient = new DefaultHttpClient (); Http post httppost = new HTTP post ("http://www.mywebsite.com/select.php"); Httppost.setEntity (new UrlEncodedFormEntity (nameValuePairs, HTTP.UTF_8)); HttpResponse response = httpclient.execute (httppost); HttpEntity unit = response.getEntity (); InputStream = entity.getContent (); // if (comparison value is here)   

Here I want to check the value InputStream

When I execute http: //www.mywebsite.com/select.php on the browser I get the output value like {name: ashu} Or null

But how can I compare it to my code because I have == zero :

you & lt; Usage-permission Android: name = "android.permission.INTERNET" /> in your manifest file

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -