176177178179180181182183184185186
// Convert the response code to a binary "did this send work or not" succeeded = (statusCode == HttpURLConnection.HTTP_OK); } } finally { // Release the connection. method.releaseConnection(); } // Return send status return succeeded; }