Android getting unexpected response from remote server call
<p>I am trying to send a call to a remote server with user credentials, and get back a true/false for whether the persons credentials match. But my code is returning the credentials right back to me in JSON lol</p>

<pre><code>        try 
        {               
            String query = String.format("login=%s&amp;password=%s", 
                     URLEncoder.encode(myEmail, charset), 
                     URLEncoder.encode(myPassword, charset));

            final URL url = new URL( myUrl + "?" + query );



            final HttpURLConnection conn = (HttpURLConnection) url.openConnection();
            conn.setDoOutput(true); 
            conn.setRequestMethod("POST");

            conn.setRequestProperty("login", myEmail);
            conn.setRequestProperty("password", myPassword);

            conn.setUseCaches(false);

            final InputStream is = conn.getInputStream();
            final byte[] buffer = new byte[8196];
            int readCount;
            final StringBuilder builder = new StringBuilder();
            while ((readCount = is.read(buffer)) &gt; -1) 
            {
                builder.append(new String(buffer, 0, readCount));
            }

            response = builder.toString();      
            Log.d( "After call, response: " , " " + response);
        } 
        catch (Exception e) 
        {
                Log.d( "Exception: " , "Yup");
                e.printStackTrace();
        }
</code></pre>

<p>Would anyone know how I can get the output from the server instead of this stuff that I get back now?</p>

<p>Thanks!</p>
